From f9547b68eb45aecb23c6ec18ced24ac603ea832a Mon Sep 17 00:00:00 2001 From: Alex Wied Date: Tue, 25 Apr 2023 18:55:39 -0400 Subject: [PATCH] Remove semverCompare for allocateLoadBalancerNodePorts 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 f3e4aecd3d..4e820181fe 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 }}