Not needed to verify on nodeport services, they are not even shows when hostNet is enabled

This commit is contained in:
Stavros Kois
2022-12-19 13:37:56 +02:00
committed by GitHub
parent 60a902e98a
commit 0453fa2e57
4 changed files with 2 additions and 8 deletions

View File

@@ -426,6 +426,7 @@ questions:
schema:
type: int
required: true
min: 9000
max: 65535
- variable: protocol
label: "Protocol"

View File

@@ -1,5 +1,4 @@
{{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }}
{{- $hostNet := .Values.hostNetwork }}
apiVersion: v1
kind: Service
metadata:
@@ -10,9 +9,6 @@ spec:
type: NodePort
ports:
{{- range $index, $config := .Values.portForwardingList }}
{{- if and (not $hostNet) (lt (int $config.nodePort) 9000) }}
{{- fail (printf "Port (%s) is too low. Minimum allowed port is 9000." ($config.nodePort | toString)) }}
{{- end }}
- port: {{ $config.containerPort }}
targetPort: {{ $config.containerPort }}
protocol: {{ $config.protocol }}

View File

@@ -77,6 +77,7 @@ questions:
description: "Specify port to be used for Portal access"
schema:
type: int
min: 9000
max: 65535
default: 15000

View File

@@ -1,5 +1,4 @@
{{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }}
{{- $hostNet := .Values.hostNetwork }}
apiVersion: v1
kind: Service
metadata:
@@ -10,9 +9,6 @@ spec:
type: NodePort
ports:
{{- range $index, $config := .Values.portForwardingList }}
{{- if and (not $hostNet) (lt (int $config.nodePort) 9000) }}
{{- fail (printf "Port (%s) is too low. Minimum allowed port is 9000." ($config.nodePort | toString)) }}
{{- end }}
- port: {{ $config.containerPort }}
targetPort: {{ $config.containerPort }}
protocol: {{ $config.protocol }}