Skip to content

Commit

Permalink
feat: Add support for topologySpreadConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
UAntBou committed Nov 17, 2023
1 parent 561f38c commit 2ac591a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/helm/calert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ Change the values according to the need of the environment in ``contrib/helm/cal
| nodeSelector | object | `{}` | |
| tolerations | list | `[]` | |
| affinity | object | `{}` | |
| topologySpreadConstraints | list | `[]` | |
| podAnnotations | object | `{}` | |
4 changes: 4 additions & 0 deletions contrib/helm/calert/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions contrib/helm/calert/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ tolerations: []

affinity: {}

topologySpreadConstraints: []

podAnnotations: {}

0 comments on commit 2ac591a

Please sign in to comment.