From f3c62cd686a8bc33fce3f175082c84fa7623d468 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sun, 3 Oct 2021 16:29:41 +0200 Subject: [PATCH] remove crooked test (+1 squashed commits) (#1087) Squashed commits: [a5217867f] (fix) ensure that ports are valid before trying to use them for setting the capability --- charts/library/common-test/ci/privport-values.yaml | 0 charts/library/common/Chart.yaml | 2 +- charts/library/common/templates/lib/chart/_values.tpl | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 charts/library/common-test/ci/privport-values.yaml diff --git a/charts/library/common-test/ci/privport-values.yaml b/charts/library/common-test/ci/privport-values.yaml deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 08ea514c141..a6bc6a6adbb 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 8.1.0 +version: 8.1.1 diff --git a/charts/library/common/templates/lib/chart/_values.tpl b/charts/library/common/templates/lib/chart/_values.tpl index 208a8064956..90de0dac775 100644 --- a/charts/library/common/templates/lib/chart/_values.tpl +++ b/charts/library/common/templates/lib/chart/_values.tpl @@ -226,7 +226,7 @@ {{- if ( semverCompare "<= 1024" ( toString $values.targetPort ) ) }} {{- $privPort = true }} {{- end }} - {{- else }} + {{- else if and ( $values.port ) ( kindIs "int" $values.port ) }} {{- if ( semverCompare "<= 1024" ( toString $values.port ) ) }} {{- $privPort = true }} {{- end }}