From 4cba3374f4cbcb9e2325b47f845854caafe3d5e8 Mon Sep 17 00:00:00 2001 From: Alex Wied <543423+centromere@users.noreply.github.com> Date: Thu, 18 May 2023 13:49:48 -0500 Subject: [PATCH] Remove semverCompare for allocateLoadBalancerNodePorts (#3814) Kubernetes 1.22.0 is now a minimum requirement for the entire chart. --- deployments/helm-chart/templates/controller-service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/helm-chart/templates/controller-service.yaml b/deployments/helm-chart/templates/controller-service.yaml index aa02dbf2e2..dc5e3b28c0 100644 --- a/deployments/helm-chart/templates/controller-service.yaml +++ b/deployments/helm-chart/templates/controller-service.yaml @@ -20,7 +20,7 @@ spec: {{- end }} {{- end }} {{- if eq .Values.controller.service.type "LoadBalancer" }} - {{- if and (semverCompare ">=1.22.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.allocateLoadBalancerNodePorts) }} + {{- if hasKey .Values.controller.service "allocateLoadBalancerNodePorts" }} allocateLoadBalancerNodePorts: {{ .Values.controller.service.allocateLoadBalancerNodePorts }} {{- end }} {{- if .Values.controller.service.loadBalancerIP }}