Skip to content

Commit

Permalink
Remove semverCompare for allocateLoadBalancerNodePorts (#3814)
Browse files Browse the repository at this point in the history
Kubernetes 1.22.0 is now a minimum requirement for the entire chart.
  • Loading branch information
centromere authored May 18, 2023
1 parent 84418ce commit 4cba337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployments/helm-chart/templates/controller-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 4cba337

Please sign in to comment.