feat(argo-cd): Add affinity to redisSecretInit Job (#2962)

feat: Add affinity to redisSecretInit Job

Signed-off-by: killianmuldoon <kmuldoon@nvidia.com>
This commit is contained in:
killianmuldoon 2024-10-03 14:53:05 +01:00 committed by GitHub
parent d61432be3c
commit bbb38b310d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 3 deletions

View file

@ -54,6 +54,10 @@ spec:
priorityClassName: {{ . }}
{{- end }}
restartPolicy: OnFailure
{{- with include "argo-cd.affinity" (dict "context" . "component" .Values.redisSecretInit) }}
affinity:
{{- trim . | nindent 8 }}
{{- end }}
{{- with .Values.redisSecretInit.nodeSelector | default .Values.global.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}