chore(argo-cd): add nodeselector and tolerations to redis-secret-init job (#2708)

chore(argo-cd): add nodeselector and tolerations to redis-secret-init-job

Signed-off-by: Pavan <borntofight090@gmail.com>
Co-authored-by: Pavan <pavan.hn@vida.id>
This commit is contained in:
Pavan Kumar 2024-05-22 12:47:05 +05:30 committed by GitHub
parent fcee9a6046
commit f431e9b2be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 5 deletions

View file

@ -50,5 +50,13 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
restartPolicy: OnFailure
{{- with .Values.redisSecretInit.nodeSelector | default .Values.global.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.redisSecretInit.tolerations | default .Values.global.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "argo-cd.redisSecretInit.serviceAccountName" . }}
{{- end }}