Skip to content

Commit ee46bd7

Browse files
masonCheinTian
authored andcommitted
fix: set global image.registry high priority to local
1 parent 9599932 commit ee46bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/csghub/templates/helpers/_image.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Define image's full path with more robust checks for subCharts
1111
{{- $globalImage := default dict $context.Values.global.image -}}
1212
{{- $localImage := default dict (index . 1) -}}
1313
14-
{{- $registry := or $localImage.registry $globalImage.registry -}}
14+
{{- $registry := or $globalImage.registry $localImage.registry -}}
1515
{{- $repository := or $localImage.repository $globalImage.repository -}}
1616
{{- $tag := or $localImage.tag $globalImage.tag -}}
1717
@@ -36,7 +36,7 @@ Define image's full path with more robust checks for subCharts with fixed image
3636
{{- $globalImage := default dict $context.Values.global.image -}}
3737
{{- $localImage := default dict (or $context.Values.image $context.Values.csghub.server.image) -}}
3838

39-
{{- $registry := or $localImage.registry $globalImage.registry -}}
39+
{{- $registry := or $globalImage.registry $localImage.registry -}}
4040
{{- $repository := index . 1 -}}
4141

4242
{{- if $registry -}}

0 commit comments

Comments
 (0)