1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 10:28:36 +00:00

fix(chart): correct behavior for global image registry (#11482)

Signed-off-by: Patrik Votoček <patrik@votocek.cz>
This commit is contained in:
Patrik Votoček 2024-11-01 12:19:02 +01:00 committed by GitHub
parent 0c8e5bd2b7
commit e49d04be10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@
{{- if not (typeIs "string" $tag) -}}
{{ fail "Image tags must be strings." }}
{{- end -}}
{{- $imageRegistry := default .image.registry .globalRegistry -}}
{{- $imageRegistry := default .globalRegistry .image.registry -}}
{{- if $imageRegistry -}}
{{- print $imageRegistry "/" (required "An image repository is required" .image.repository) ":" $tag -}}
{{- else -}}