From 9735b7dcaaefea71050dc208adc26be7826d3e0a Mon Sep 17 00:00:00 2001 From: Marco Iorio Date: Thu, 28 Mar 2024 08:57:03 +0100 Subject: [PATCH] helm: fix KPR autodetection value The logic to determine whether KPR should be enabled using the "true" setting or the legacy "strict" one, based on the Cilium version, appears to be inverted, apparently due to a test change which got incorrectly committed. Let's fix it. Fixes: ad3a82c210ee ("helm: improve KPR autodetection logic") Signed-off-by: Marco Iorio --- install/autodetect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/autodetect.go b/install/autodetect.go index 3a5bf8c47c..96ca89d086 100644 --- a/install/autodetect.go +++ b/install/autodetect.go @@ -209,7 +209,7 @@ func (k *K8sInstaller) autodetectKubeProxy(ctx context.Context, helmValues map[s // Use HelmOpts to set auto kube-proxy installation setIfUnset("kubeProxyReplacement", func() string { - if !versioncheck.MustCompile(">=1.14.0")(k.chartVersion) { + if versioncheck.MustCompile(">=1.14.0")(k.chartVersion) { return "true" } return "strict"