From 60a902e98a696d70c1e93dc9223535ade1b58edc Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 19 Dec 2022 11:10:32 +0200 Subject: [PATCH 1/2] Remove min port from UI and validate with template --- charts/ix-chart/{2212.0.0 => 2212.0.1}/.helmignore | 0 charts/ix-chart/{2212.0.0 => 2212.0.1}/Chart.lock | 0 charts/ix-chart/{2212.0.0 => 2212.0.1}/Chart.yaml | 2 +- charts/ix-chart/{2212.0.0 => 2212.0.1}/README.md | 0 .../ix-chart/{2212.0.0 => 2212.0.1}/app-readme.md | 0 .../charts/common-2207.0.0.tgz | Bin .../ix-chart/2212.0.1}/questions.yaml | 2 -- .../{2212.0.0 => 2212.0.1}/templates/NOTES.txt | 0 .../templates/_containers.tpl | 0 .../{2212.0.0 => 2212.0.1}/templates/_helpers.tpl | 0 .../ix-chart/2212.0.1}/templates/_networking.tpl | 7 +++++++ .../{2212.0.0 => 2212.0.1}/templates/_volumes.tpl | 0 .../{2212.0.0 => 2212.0.1}/templates/_workload.tpl | 0 .../templates/external-interfaces.yaml | 0 .../ix-chart/2212.0.1}/templates/service.yaml | 4 ++++ .../templates/tests/deployment-check.yaml | 0 .../{2212.0.0 => 2212.0.1}/templates/workload.yaml | 0 .../{2212.0.0 => 2212.0.1}/test_values.yaml | 0 test/ix-chart/{2212.0.0 => 2212.0.1}/.helmignore | 0 test/ix-chart/{2212.0.0 => 2212.0.1}/Chart.lock | 0 test/ix-chart/{2212.0.0 => 2212.0.1}/Chart.yaml | 2 +- test/ix-chart/{2212.0.0 => 2212.0.1}/README.md | 0 test/ix-chart/{2212.0.0 => 2212.0.1}/app-readme.md | 0 .../charts/common-2207.0.0.tgz | Bin .../ix-chart/2212.0.1}/questions.yaml | 2 -- .../{2212.0.0 => 2212.0.1}/templates/NOTES.txt | 0 .../templates/_containers.tpl | 0 .../{2212.0.0 => 2212.0.1}/templates/_helpers.tpl | 0 .../ix-chart/2212.0.1}/templates/_networking.tpl | 7 +++++++ .../{2212.0.0 => 2212.0.1}/templates/_volumes.tpl | 0 .../{2212.0.0 => 2212.0.1}/templates/_workload.tpl | 0 .../templates/external-interfaces.yaml | 0 .../ix-chart/2212.0.1}/templates/service.yaml | 4 ++++ .../templates/tests/deployment-check.yaml | 0 .../{2212.0.0 => 2212.0.1}/templates/workload.yaml | 0 .../{2212.0.0 => 2212.0.1}/test_values.yaml | 0 36 files changed, 24 insertions(+), 6 deletions(-) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/.helmignore (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/Chart.lock (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/Chart.yaml (98%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/README.md (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/app-readme.md (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/charts/common-2207.0.0.tgz (100%) rename {test/ix-chart/2212.0.0 => charts/ix-chart/2212.0.1}/questions.yaml (99%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/NOTES.txt (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/_containers.tpl (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/_helpers.tpl (100%) rename {test/ix-chart/2212.0.0 => charts/ix-chart/2212.0.1}/templates/_networking.tpl (63%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/_volumes.tpl (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/_workload.tpl (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/external-interfaces.yaml (100%) rename {test/ix-chart/2212.0.0 => charts/ix-chart/2212.0.1}/templates/service.yaml (73%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/tests/deployment-check.yaml (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/templates/workload.yaml (100%) rename charts/ix-chart/{2212.0.0 => 2212.0.1}/test_values.yaml (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/.helmignore (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/Chart.lock (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/Chart.yaml (98%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/README.md (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/app-readme.md (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/charts/common-2207.0.0.tgz (100%) rename {charts/ix-chart/2212.0.0 => test/ix-chart/2212.0.1}/questions.yaml (99%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/NOTES.txt (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/_containers.tpl (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/_helpers.tpl (100%) rename {charts/ix-chart/2212.0.0 => test/ix-chart/2212.0.1}/templates/_networking.tpl (63%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/_volumes.tpl (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/_workload.tpl (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/external-interfaces.yaml (100%) rename {charts/ix-chart/2212.0.0 => test/ix-chart/2212.0.1}/templates/service.yaml (73%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/tests/deployment-check.yaml (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/templates/workload.yaml (100%) rename test/ix-chart/{2212.0.0 => 2212.0.1}/test_values.yaml (100%) diff --git a/charts/ix-chart/2212.0.0/.helmignore b/charts/ix-chart/2212.0.1/.helmignore similarity index 100% rename from charts/ix-chart/2212.0.0/.helmignore rename to charts/ix-chart/2212.0.1/.helmignore diff --git a/charts/ix-chart/2212.0.0/Chart.lock b/charts/ix-chart/2212.0.1/Chart.lock similarity index 100% rename from charts/ix-chart/2212.0.0/Chart.lock rename to charts/ix-chart/2212.0.1/Chart.lock diff --git a/charts/ix-chart/2212.0.0/Chart.yaml b/charts/ix-chart/2212.0.1/Chart.yaml similarity index 98% rename from charts/ix-chart/2212.0.0/Chart.yaml rename to charts/ix-chart/2212.0.1/Chart.yaml index c1f4defb8e..8cd49e0837 100644 --- a/charts/ix-chart/2212.0.0/Chart.yaml +++ b/charts/ix-chart/2212.0.1/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2212.0.0 +version: 2212.0.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/ix-chart/2212.0.0/README.md b/charts/ix-chart/2212.0.1/README.md similarity index 100% rename from charts/ix-chart/2212.0.0/README.md rename to charts/ix-chart/2212.0.1/README.md diff --git a/charts/ix-chart/2212.0.0/app-readme.md b/charts/ix-chart/2212.0.1/app-readme.md similarity index 100% rename from charts/ix-chart/2212.0.0/app-readme.md rename to charts/ix-chart/2212.0.1/app-readme.md diff --git a/charts/ix-chart/2212.0.0/charts/common-2207.0.0.tgz b/charts/ix-chart/2212.0.1/charts/common-2207.0.0.tgz similarity index 100% rename from charts/ix-chart/2212.0.0/charts/common-2207.0.0.tgz rename to charts/ix-chart/2212.0.1/charts/common-2207.0.0.tgz diff --git a/test/ix-chart/2212.0.0/questions.yaml b/charts/ix-chart/2212.0.1/questions.yaml similarity index 99% rename from test/ix-chart/2212.0.0/questions.yaml rename to charts/ix-chart/2212.0.1/questions.yaml index 0cfff6623b..1f5ead90ab 100644 --- a/test/ix-chart/2212.0.0/questions.yaml +++ b/charts/ix-chart/2212.0.1/questions.yaml @@ -77,7 +77,6 @@ questions: description: "Specify port to be used for Portal access" schema: type: int - min: 9000 max: 65535 default: 15000 @@ -427,7 +426,6 @@ questions: schema: type: int required: true - min: 9000 max: 65535 - variable: protocol label: "Protocol" diff --git a/charts/ix-chart/2212.0.0/templates/NOTES.txt b/charts/ix-chart/2212.0.1/templates/NOTES.txt similarity index 100% rename from charts/ix-chart/2212.0.0/templates/NOTES.txt rename to charts/ix-chart/2212.0.1/templates/NOTES.txt diff --git a/charts/ix-chart/2212.0.0/templates/_containers.tpl b/charts/ix-chart/2212.0.1/templates/_containers.tpl similarity index 100% rename from charts/ix-chart/2212.0.0/templates/_containers.tpl rename to charts/ix-chart/2212.0.1/templates/_containers.tpl diff --git a/charts/ix-chart/2212.0.0/templates/_helpers.tpl b/charts/ix-chart/2212.0.1/templates/_helpers.tpl similarity index 100% rename from charts/ix-chart/2212.0.0/templates/_helpers.tpl rename to charts/ix-chart/2212.0.1/templates/_helpers.tpl diff --git a/test/ix-chart/2212.0.0/templates/_networking.tpl b/charts/ix-chart/2212.0.1/templates/_networking.tpl similarity index 63% rename from test/ix-chart/2212.0.0/templates/_networking.tpl rename to charts/ix-chart/2212.0.1/templates/_networking.tpl index 0c93117cbc..417397f10b 100644 --- a/test/ix-chart/2212.0.0/templates/_networking.tpl +++ b/charts/ix-chart/2212.0.1/templates/_networking.tpl @@ -21,3 +21,10 @@ Get configuration for host network {{- print "true" -}} {{- end -}} {{- end -}} + +{{/* Validate portal port */}} +{{- if .Values.enableUIPortal }} + {{- if and (not .Values.hostNetwork) (lt .Values.portalDetails.port 9000) }} + {{- fail (printf "Port (%d) is too low. Minimum allowed port is 9000." .Values.portalDetails.port) }} + {{- end }} +{{- end }} diff --git a/charts/ix-chart/2212.0.0/templates/_volumes.tpl b/charts/ix-chart/2212.0.1/templates/_volumes.tpl similarity index 100% rename from charts/ix-chart/2212.0.0/templates/_volumes.tpl rename to charts/ix-chart/2212.0.1/templates/_volumes.tpl diff --git a/charts/ix-chart/2212.0.0/templates/_workload.tpl b/charts/ix-chart/2212.0.1/templates/_workload.tpl similarity index 100% rename from charts/ix-chart/2212.0.0/templates/_workload.tpl rename to charts/ix-chart/2212.0.1/templates/_workload.tpl diff --git a/charts/ix-chart/2212.0.0/templates/external-interfaces.yaml b/charts/ix-chart/2212.0.1/templates/external-interfaces.yaml similarity index 100% rename from charts/ix-chart/2212.0.0/templates/external-interfaces.yaml rename to charts/ix-chart/2212.0.1/templates/external-interfaces.yaml diff --git a/test/ix-chart/2212.0.0/templates/service.yaml b/charts/ix-chart/2212.0.1/templates/service.yaml similarity index 73% rename from test/ix-chart/2212.0.0/templates/service.yaml rename to charts/ix-chart/2212.0.1/templates/service.yaml index 4b0237d016..dfbe6ee748 100644 --- a/test/ix-chart/2212.0.0/templates/service.yaml +++ b/charts/ix-chart/2212.0.1/templates/service.yaml @@ -1,4 +1,5 @@ {{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }} +{{- $hostNet := .Values.hostNetwork }} apiVersion: v1 kind: Service metadata: @@ -9,6 +10,9 @@ 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 }} diff --git a/charts/ix-chart/2212.0.0/templates/tests/deployment-check.yaml b/charts/ix-chart/2212.0.1/templates/tests/deployment-check.yaml similarity index 100% rename from charts/ix-chart/2212.0.0/templates/tests/deployment-check.yaml rename to charts/ix-chart/2212.0.1/templates/tests/deployment-check.yaml diff --git a/charts/ix-chart/2212.0.0/templates/workload.yaml b/charts/ix-chart/2212.0.1/templates/workload.yaml similarity index 100% rename from charts/ix-chart/2212.0.0/templates/workload.yaml rename to charts/ix-chart/2212.0.1/templates/workload.yaml diff --git a/charts/ix-chart/2212.0.0/test_values.yaml b/charts/ix-chart/2212.0.1/test_values.yaml similarity index 100% rename from charts/ix-chart/2212.0.0/test_values.yaml rename to charts/ix-chart/2212.0.1/test_values.yaml diff --git a/test/ix-chart/2212.0.0/.helmignore b/test/ix-chart/2212.0.1/.helmignore similarity index 100% rename from test/ix-chart/2212.0.0/.helmignore rename to test/ix-chart/2212.0.1/.helmignore diff --git a/test/ix-chart/2212.0.0/Chart.lock b/test/ix-chart/2212.0.1/Chart.lock similarity index 100% rename from test/ix-chart/2212.0.0/Chart.lock rename to test/ix-chart/2212.0.1/Chart.lock diff --git a/test/ix-chart/2212.0.0/Chart.yaml b/test/ix-chart/2212.0.1/Chart.yaml similarity index 98% rename from test/ix-chart/2212.0.0/Chart.yaml rename to test/ix-chart/2212.0.1/Chart.yaml index c1f4defb8e..8cd49e0837 100644 --- a/test/ix-chart/2212.0.0/Chart.yaml +++ b/test/ix-chart/2212.0.1/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2212.0.0 +version: 2212.0.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/test/ix-chart/2212.0.0/README.md b/test/ix-chart/2212.0.1/README.md similarity index 100% rename from test/ix-chart/2212.0.0/README.md rename to test/ix-chart/2212.0.1/README.md diff --git a/test/ix-chart/2212.0.0/app-readme.md b/test/ix-chart/2212.0.1/app-readme.md similarity index 100% rename from test/ix-chart/2212.0.0/app-readme.md rename to test/ix-chart/2212.0.1/app-readme.md diff --git a/test/ix-chart/2212.0.0/charts/common-2207.0.0.tgz b/test/ix-chart/2212.0.1/charts/common-2207.0.0.tgz similarity index 100% rename from test/ix-chart/2212.0.0/charts/common-2207.0.0.tgz rename to test/ix-chart/2212.0.1/charts/common-2207.0.0.tgz diff --git a/charts/ix-chart/2212.0.0/questions.yaml b/test/ix-chart/2212.0.1/questions.yaml similarity index 99% rename from charts/ix-chart/2212.0.0/questions.yaml rename to test/ix-chart/2212.0.1/questions.yaml index 0cfff6623b..1f5ead90ab 100644 --- a/charts/ix-chart/2212.0.0/questions.yaml +++ b/test/ix-chart/2212.0.1/questions.yaml @@ -77,7 +77,6 @@ questions: description: "Specify port to be used for Portal access" schema: type: int - min: 9000 max: 65535 default: 15000 @@ -427,7 +426,6 @@ questions: schema: type: int required: true - min: 9000 max: 65535 - variable: protocol label: "Protocol" diff --git a/test/ix-chart/2212.0.0/templates/NOTES.txt b/test/ix-chart/2212.0.1/templates/NOTES.txt similarity index 100% rename from test/ix-chart/2212.0.0/templates/NOTES.txt rename to test/ix-chart/2212.0.1/templates/NOTES.txt diff --git a/test/ix-chart/2212.0.0/templates/_containers.tpl b/test/ix-chart/2212.0.1/templates/_containers.tpl similarity index 100% rename from test/ix-chart/2212.0.0/templates/_containers.tpl rename to test/ix-chart/2212.0.1/templates/_containers.tpl diff --git a/test/ix-chart/2212.0.0/templates/_helpers.tpl b/test/ix-chart/2212.0.1/templates/_helpers.tpl similarity index 100% rename from test/ix-chart/2212.0.0/templates/_helpers.tpl rename to test/ix-chart/2212.0.1/templates/_helpers.tpl diff --git a/charts/ix-chart/2212.0.0/templates/_networking.tpl b/test/ix-chart/2212.0.1/templates/_networking.tpl similarity index 63% rename from charts/ix-chart/2212.0.0/templates/_networking.tpl rename to test/ix-chart/2212.0.1/templates/_networking.tpl index 0c93117cbc..417397f10b 100644 --- a/charts/ix-chart/2212.0.0/templates/_networking.tpl +++ b/test/ix-chart/2212.0.1/templates/_networking.tpl @@ -21,3 +21,10 @@ Get configuration for host network {{- print "true" -}} {{- end -}} {{- end -}} + +{{/* Validate portal port */}} +{{- if .Values.enableUIPortal }} + {{- if and (not .Values.hostNetwork) (lt .Values.portalDetails.port 9000) }} + {{- fail (printf "Port (%d) is too low. Minimum allowed port is 9000." .Values.portalDetails.port) }} + {{- end }} +{{- end }} diff --git a/test/ix-chart/2212.0.0/templates/_volumes.tpl b/test/ix-chart/2212.0.1/templates/_volumes.tpl similarity index 100% rename from test/ix-chart/2212.0.0/templates/_volumes.tpl rename to test/ix-chart/2212.0.1/templates/_volumes.tpl diff --git a/test/ix-chart/2212.0.0/templates/_workload.tpl b/test/ix-chart/2212.0.1/templates/_workload.tpl similarity index 100% rename from test/ix-chart/2212.0.0/templates/_workload.tpl rename to test/ix-chart/2212.0.1/templates/_workload.tpl diff --git a/test/ix-chart/2212.0.0/templates/external-interfaces.yaml b/test/ix-chart/2212.0.1/templates/external-interfaces.yaml similarity index 100% rename from test/ix-chart/2212.0.0/templates/external-interfaces.yaml rename to test/ix-chart/2212.0.1/templates/external-interfaces.yaml diff --git a/charts/ix-chart/2212.0.0/templates/service.yaml b/test/ix-chart/2212.0.1/templates/service.yaml similarity index 73% rename from charts/ix-chart/2212.0.0/templates/service.yaml rename to test/ix-chart/2212.0.1/templates/service.yaml index 4b0237d016..dfbe6ee748 100644 --- a/charts/ix-chart/2212.0.0/templates/service.yaml +++ b/test/ix-chart/2212.0.1/templates/service.yaml @@ -1,4 +1,5 @@ {{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }} +{{- $hostNet := .Values.hostNetwork }} apiVersion: v1 kind: Service metadata: @@ -9,6 +10,9 @@ 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 }} diff --git a/test/ix-chart/2212.0.0/templates/tests/deployment-check.yaml b/test/ix-chart/2212.0.1/templates/tests/deployment-check.yaml similarity index 100% rename from test/ix-chart/2212.0.0/templates/tests/deployment-check.yaml rename to test/ix-chart/2212.0.1/templates/tests/deployment-check.yaml diff --git a/test/ix-chart/2212.0.0/templates/workload.yaml b/test/ix-chart/2212.0.1/templates/workload.yaml similarity index 100% rename from test/ix-chart/2212.0.0/templates/workload.yaml rename to test/ix-chart/2212.0.1/templates/workload.yaml diff --git a/test/ix-chart/2212.0.0/test_values.yaml b/test/ix-chart/2212.0.1/test_values.yaml similarity index 100% rename from test/ix-chart/2212.0.0/test_values.yaml rename to test/ix-chart/2212.0.1/test_values.yaml From 0453fa2e57c4022f13d52c0a5f3c8ed2418cd2e1 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 19 Dec 2022 13:37:56 +0200 Subject: [PATCH 2/2] Not needed to verify on nodeport services, they are not even shows when hostNet is enabled --- charts/ix-chart/2212.0.1/questions.yaml | 1 + charts/ix-chart/2212.0.1/templates/service.yaml | 4 ---- test/ix-chart/2212.0.1/questions.yaml | 1 + test/ix-chart/2212.0.1/templates/service.yaml | 4 ---- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/charts/ix-chart/2212.0.1/questions.yaml b/charts/ix-chart/2212.0.1/questions.yaml index 1f5ead90ab..bc46ac6c5d 100644 --- a/charts/ix-chart/2212.0.1/questions.yaml +++ b/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" diff --git a/charts/ix-chart/2212.0.1/templates/service.yaml b/charts/ix-chart/2212.0.1/templates/service.yaml index dfbe6ee748..4b0237d016 100644 --- a/charts/ix-chart/2212.0.1/templates/service.yaml +++ b/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 }} diff --git a/test/ix-chart/2212.0.1/questions.yaml b/test/ix-chart/2212.0.1/questions.yaml index 1f5ead90ab..fc77ea49e1 100644 --- a/test/ix-chart/2212.0.1/questions.yaml +++ b/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 diff --git a/test/ix-chart/2212.0.1/templates/service.yaml b/test/ix-chart/2212.0.1/templates/service.yaml index dfbe6ee748..4b0237d016 100644 --- a/test/ix-chart/2212.0.1/templates/service.yaml +++ b/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 }}