feat(argo-cd): Add global affinity configuration (#1794)
This commit is contained in:
parent
70fd1b3fe6
commit
51386c69be
13 changed files with 115 additions and 41 deletions
|
|
@ -264,6 +264,8 @@ spec:
|
|||
initContainers:
|
||||
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||
{{- end }}
|
||||
affinity:
|
||||
{{- include "argo-cd.affinity" (dict "context" . "component" .Values.controller) | nindent 8 }}
|
||||
{{- with .Values.controller.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
|
@ -272,10 +274,6 @@ spec:
|
|||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.controller.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.controller.topologySpreadConstraints }}
|
||||
topologySpreadConstraints:
|
||||
{{- range $constraint := . }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue