Skip to content

Commit

Permalink
Merge branch 'dmp-global-imageRegistry' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
djangoyi-yunify committed Mar 7, 2024
2 parents 6c5d3bc + 89b66cf commit ba9374c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
11 changes: 2 additions & 9 deletions charts/redis-operator/templates/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,15 @@ spec:
spec:
containers:
- name: "{{ .Values.redisOperator.name }}"
{{- if not .Values.redisOperator.imagePrefix }}
image: "{{ .Values.redisOperator.imageName }}:{{ .Values.redisOperator.imageTag }}"
{{ else }}
image: "{{ .Values.redisOperator.imagePrefix }}/{{ .Values.redisOperator.imageName }}:{{ .Values.redisOperator.imageTag }}"
{{ end }}
image: "{{ default "docker.io" (default .Values.localRegistry .Values.global.imageRegistry) }}/{{ .Values.redisOperator.imageName }}:{{ .Values.redisOperator.imageTag }}"
imagePullPolicy: {{ .Values.redisOperator.imagePullPolicy }}
env:
{{- if .Values.redisPasswordEncrypt }}
- name: REDIS_PASSWORD_ENCRYPT
value: "{{ .Values.redisPasswordEncrypt }}"
{{- end }}

{{- if .Values.localRegistry }}
- name: LOCAL_REGISTRY
value: {{ .Values.localRegistry }}
{{- end }}
value: {{ default "docker.io" (default .Values.localRegistry .Values.global.imageRegistry) }}
{{- if .Values.namespaceOverride }}
- name: NAMESPACE_OVERRIDE
value: {{ .Values.namespaceOverride }}
Expand Down
3 changes: 3 additions & 0 deletions charts/redis-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
global:
imageRegistry: ""

redisOperator:
name: redis-operator
imageName: radondb/redis-operator
Expand Down

0 comments on commit ba9374c

Please sign in to comment.