From 10911243efb2da8d92ab5c44c9c0bb34149b4398 Mon Sep 17 00:00:00 2001 From: civkule <108655352+civkule@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:17:14 +0300 Subject: [PATCH] feat: add image pull secret for redis operator (#1053) * imagePullSecret for redis-operator Added imagePullSecret for redis-operator in operator-deployment.yaml file Signed-off-by: civkule * added imagePullSecrets in values.yaml Signed-off-by: civkule --------- Signed-off-by: civkule --- charts/redis-operator/templates/operator-deployment.yaml | 6 +++++- charts/redis-operator/values.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/redis-operator/templates/operator-deployment.yaml b/charts/redis-operator/templates/operator-deployment.yaml index e95d7e069..613c69fd0 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: @@ -81,4 +85,4 @@ spec: secret: defaultMode: 420 secretName: {{ .Values.certificate.secretName }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/redis-operator/values.yaml b/charts/redis-operator/values.yaml index 47ef96d48..a438be8e4 100644 --- a/charts/redis-operator/values.yaml +++ b/charts/redis-operator/values.yaml @@ -5,6 +5,7 @@ redisOperator: # Overrides the image tag whose default is the chart appVersion. imageTag: "" imagePullPolicy: Always + imagePullSecrets: [] # Additional pod annotations podAnnotations: {}