Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Comellini <luca.com@gmail.com>
  • Loading branch information
centromere and lucacome committed May 8, 2022
1 parent 695d4e0 commit f484f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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 hasKey .Values.controller.service "allocateLoadBalancerNodePorts" }}
{{- if and (semverCompare ">=1.22.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.allocateLoadBalancerNodePorts) }}
allocateLoadBalancerNodePorts: {{ .Values.controller.service.allocateLoadBalancerNodePorts }}
{{- end }}
{{- if .Values.controller.service.loadBalancerIP }}
Expand All @@ -32,7 +32,7 @@ spec:
{{- end }}
{{- end }}
type: {{ .Values.controller.service.type }}
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version }}
{{- if semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version }}
{{- if .Values.controller.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.controller.service.ipFamilyPolicy }}
{{- end }}
Expand Down
1 change: 0 additions & 1 deletion deployments/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ controller:
# name: nginx-ingress

## Whether to automatically allocate NodePorts (only for LoadBalancers).
## This is a beta-level feature as of Kubernetes version 1.22.
# allocateLoadBalancerNodePorts: false

## Dual stack preference.
Expand Down

0 comments on commit f484f83

Please sign in to comment.