From 2ac591afff5917c5d5167447559008591ffdd6e3 Mon Sep 17 00:00:00 2001 From: Antoine Boursin <93669626+UAntBou@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:27:48 +0100 Subject: [PATCH] feat: Add support for topologySpreadConstraints --- contrib/helm/calert/README.md | 1 + contrib/helm/calert/templates/deployment.yaml | 4 ++++ contrib/helm/calert/values.yaml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/contrib/helm/calert/README.md b/contrib/helm/calert/README.md index b3ebd38..71c6f55 100644 --- a/contrib/helm/calert/README.md +++ b/contrib/helm/calert/README.md @@ -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 | `{}` | | diff --git a/contrib/helm/calert/templates/deployment.yaml b/contrib/helm/calert/templates/deployment.yaml index ed2dd86..f014b67 100644 --- a/contrib/helm/calert/templates/deployment.yaml +++ b/contrib/helm/calert/templates/deployment.yaml @@ -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 }} diff --git a/contrib/helm/calert/values.yaml b/contrib/helm/calert/values.yaml index e24f5d9..ec33394 100644 --- a/contrib/helm/calert/values.yaml +++ b/contrib/helm/calert/values.yaml @@ -78,4 +78,6 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + podAnnotations: {}