fix(charts): extend pod topology spread constraints

This commit is contained in:
Witold Duranek 2024-04-22 10:10:29 +02:00
parent 6e99f01ecd
commit 16a263e09b
2 changed files with 30 additions and 0 deletions

View File

@ -184,5 +184,20 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "emqx.name" $ }} app.kubernetes.io/name: {{ include "emqx.name" $ }}
app.kubernetes.io/instance: {{ $.Release.Name }} app.kubernetes.io/instance: {{ $.Release.Name }}
{{- if .minDomains }}
minDomains: {{ .minDomains }}
{{- end }}
{{- if .matchLabelKeys }}
matchLabelKeys:
{{- range .matchLabelKeys }}
- {{ . }}
{{- end }}
{{- end }}
{{- if .nodeAffinityPolicy }}
nodeAffinityPolicy: {{ .nodeAffinityPolicy }}
{{- end }}
{{- if .nodeTaintsPolicy }}
nodeTaintsPolicy: {{ .nodeTaintsPolicy }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -184,5 +184,20 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "emqx.name" $ }} app.kubernetes.io/name: {{ include "emqx.name" $ }}
app.kubernetes.io/instance: {{ $.Release.Name }} app.kubernetes.io/instance: {{ $.Release.Name }}
{{- if .minDomains }}
minDomains: {{ .minDomains }}
{{- end }}
{{- if .matchLabelKeys }}
matchLabelKeys:
{{- range .matchLabelKeys }}
- {{ . }}
{{- end }}
{{- end }}
{{- if .nodeAffinityPolicy }}
nodeAffinityPolicy: {{ .nodeAffinityPolicy }}
{{- end }}
{{- if .nodeTaintsPolicy }}
nodeTaintsPolicy: {{ .nodeTaintsPolicy }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}