浏览代码

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

Stavros Kois 2 年之前
父节点
当前提交
0453fa2e57

+ 1 - 0
charts/ix-chart/2212.0.1/questions.yaml

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

+ 0 - 4
charts/ix-chart/2212.0.1/templates/service.yaml

@@ -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 }}

+ 1 - 0
test/ix-chart/2212.0.1/questions.yaml

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

+ 0 - 4
test/ix-chart/2212.0.1/templates/service.yaml

@@ -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 }}