From 4cbcd5e5a740f8a3dfdc67650022ef49b4000a19 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Wed, 11 Dec 2024 11:00:46 +0100 Subject: [PATCH] Chart: Improve `semverCompare`. --- helm/cluster/templates/clusterapi/_helpers_tlsciphersuites.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/cluster/templates/clusterapi/_helpers_tlsciphersuites.tpl b/helm/cluster/templates/clusterapi/_helpers_tlsciphersuites.tpl index f9d75ded..c23db63f 100644 --- a/helm/cluster/templates/clusterapi/_helpers_tlsciphersuites.tpl +++ b/helm/cluster/templates/clusterapi/_helpers_tlsciphersuites.tpl @@ -22,7 +22,7 @@ "TLS_RSA_WITH_AES_128_CBC_SHA" "TLS_RSA_WITH_AES_128_GCM_SHA256" }} -{{- if semverCompare "<1.30.0" $k8sVersion }} +{{- if or (eq $k8sVersion "N/A") (semverCompare "<1.30.0-0" $k8sVersion) }} {{- $ciphers = concat $ciphers (list "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305" "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305") }} {{- end }} {{- toYaml $ciphers }}