Skip to content

Commit

Permalink
feat: add image pull secret for redis operator (#1053)
Browse files Browse the repository at this point in the history
* imagePullSecret for redis-operator

Added imagePullSecret for redis-operator in operator-deployment.yaml file

Signed-off-by: civkule <[email protected]>

* added imagePullSecrets in values.yaml

Signed-off-by: civkule <[email protected]>

---------

Signed-off-by: civkule <[email protected]>
  • Loading branch information
civkule authored Aug 30, 2024
1 parent 7c2d396 commit 1091124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/redis-operator/templates/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -81,4 +85,4 @@ spec:
secret:
defaultMode: 420
secretName: {{ .Values.certificate.secretName }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/redis-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ redisOperator:
# Overrides the image tag whose default is the chart appVersion.
imageTag: ""
imagePullPolicy: Always
imagePullSecrets: []

# Additional pod annotations
podAnnotations: {}
Expand Down

0 comments on commit 1091124

Please sign in to comment.