From 49f0ecf203a0dd304df14244faeebc9eb6cd1430 Mon Sep 17 00:00:00 2001 From: civkule <108655352+civkule@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:58:04 +0300 Subject: [PATCH] imagePullSecret for redis-operator Added imagePullSecret for redis-operator in operator-deployment.yaml file Signed-off-by: civkule --- charts/redis-operator/templates/operator-deployment.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/redis-operator/templates/operator-deployment.yaml b/charts/redis-operator/templates/operator-deployment.yaml index eb05d945d..1a2b8d07a 100644 --- a/charts/redis-operator/templates/operator-deployment.yaml +++ b/charts/redis-operator/templates/operator-deployment.yaml @@ -22,6 +22,10 @@ spec: {{- end }} spec: automountServiceAccountToken: {{ .Values.redisOperator.automountServiceAccountToken }} + {{- if .Values.redisOperator.imagePullSecrets }} + imagePullSecrets: + {{- toYaml .Values.redisOperator.imagePullSecrets | nindent 8 }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: @@ -78,4 +82,4 @@ spec: secret: defaultMode: 420 secretName: {{ .Values.certificate.secretName }} - {{- end }} \ No newline at end of file + {{- end }}