Skip to content

Commit d70d9f0

Browse files
committed
chore: pull busybox image failed for redis
1 parent a87e84a commit d70d9f0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

addons/redis/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Redis is an in-memory database that persists on disk. The data mod
44

55
type: application
66

7-
version: 1.0.2
7+
version: 1.0.3
88

99
appVersion: "7.2.7"
1010

addons/redis/templates/_helpers.tpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@ redis-metrics-config
149149
{{- end }}
150150

151151
{{- define "busybox.image" -}}
152-
{{ .Values.busyboxImage.registry | default ( .Values.image.registry | default "docker.io" ) }}/{{ .Values.busyboxImage.repository}}:{{ .Values.busyboxImage.tag }}
152+
{{ $registry := .Values.busyboxImage.registry | default ( .Values.image.registry | default "docker.io" )}}
153+
{{- if eq $registry "docker.io" -}}
154+
{{ $registry }}/busybox:{{ .Values.busyboxImage.tag }}
155+
{{- else -}}
156+
{{ $registry }}/apecloud/busybox:{{ .Values.busyboxImage.tag }}
157+
{{- end -}}
153158
{{- end }}
154159

155160
{{- define "metrics.repository" -}}

0 commit comments

Comments
 (0)