From 50b311e25ee7c7ae0787626bb36f9d5195ac882e Mon Sep 17 00:00:00 2001 From: Chris Duong Date: Thu, 20 Oct 2022 11:37:34 +0200 Subject: [PATCH] add support --- src/chartmuseum/templates/deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/chartmuseum/templates/deployment.yaml b/src/chartmuseum/templates/deployment.yaml index 554739d..f234615 100644 --- a/src/chartmuseum/templates/deployment.yaml +++ b/src/chartmuseum/templates/deployment.yaml @@ -170,6 +170,17 @@ spec: affinity: {{ toYaml . | indent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- range $constraint := . }} + - {{ toYaml $constraint | nindent 8 | trim }} + {{- if not $constraint.labelSelector }} + labelSelector: + matchLabels: + {{- include "chartmuseum.selectorLabels" $ | nindent 12 }} + {{- end }} + {{- end }} + {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }}