From af7e85bc9a513b1159a504ae362c131c5a37d9bf Mon Sep 17 00:00:00 2001 From: Elliot Maincourt Date: Tue, 5 Mar 2024 15:56:14 +0100 Subject: [PATCH] chore(chart): add topologySpreadConstraints --- charts/redisoperator/Chart.yaml | 2 +- charts/redisoperator/templates/deployment.yaml | 4 ++++ charts/redisoperator/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/redisoperator/Chart.yaml b/charts/redisoperator/Chart.yaml index 69c1ec45b..ebf5c23de 100644 --- a/charts/redisoperator/Chart.yaml +++ b/charts/redisoperator/Chart.yaml @@ -4,7 +4,7 @@ appVersion: 1.3.0 apiVersion: v1 description: A Helm chart for the Spotahome Redis Operator name: redis-operator -version: 3.3.0 +version: 3.3.1 home: https://github.com/spotahome/redis-operator keywords: - "golang" diff --git a/charts/redisoperator/templates/deployment.yaml b/charts/redisoperator/templates/deployment.yaml index 604a44e1f..b3f2f2730 100644 --- a/charts/redisoperator/templates/deployment.yaml +++ b/charts/redisoperator/templates/deployment.yaml @@ -80,6 +80,10 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} diff --git a/charts/redisoperator/values.yaml b/charts/redisoperator/values.yaml index 0460a54e1..10a088b99 100644 --- a/charts/redisoperator/values.yaml +++ b/charts/redisoperator/values.yaml @@ -87,6 +87,8 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + # CRDs configuration crds: # -- Additional CRDs annotations