Skip to content

Commit

Permalink
Allow configuring topologySpreadConstraints in Helm chart (#2625)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomanski authored May 31, 2022
1 parent 6611a9b commit ed1a6f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployments/helm-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ Parameter | Description | Default
`controller.terminationGracePeriodSeconds` | The termination grace period of the Ingress Controller pod. | 30
`controller.tolerations` | The tolerations of the Ingress Controller pods. | []
`controller.affinity` | The affinity of the Ingress Controller pods. | {}
`controller.topologySpreadConstraints` | The topology spread constraints of the Ingress controller pods. | {}
`controller.volumes` | The volumes of the Ingress Controller pods. | []
`controller.volumeMounts` | The volumeMounts of the Ingress Controller pods. | []
`controller.initContainers` | InitContainers for the Ingress Controller pods. | []
Expand Down
4 changes: 4 additions & 0 deletions deployments/helm-chart/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ spec:
affinity:
{{ toYaml .Values.controller.affinity | indent 8 }}
{{- end }}
{{- if .Values.controller.topologySpreadConstraints }}
topologySpreadConstraints:
{{ toYaml .Values.controller.topologySpreadConstraints | indent 8 }}
{{- end }}
{{- if or (.Values.controller.volumes) (.Values.nginxServiceMesh.enable) }}
volumes:
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions deployments/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ controller:
## The affinity of the Ingress Controller pods.
affinity: {}

## The topology spread constraints of the Ingress controller pods.
topologySpreadConstraints: {}

## The volumes of the Ingress Controller pods.
volumes: []
# - name: extra-conf
Expand Down

0 comments on commit ed1a6f8

Please sign in to comment.