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:
parent
0c8e5bd2b7
commit
e49d04be10
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Add table
Reference in a new issue