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: {}