From e49d04be1067f7e6a800a22fe1faf8d96aef5ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Voto=C4=8Dek?= <patrik@votocek.cz> Date: Fri, 1 Nov 2024 12:19:02 +0100 Subject: [PATCH] fix(chart): correct behavior for global image registry (#11482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrik Votoček <patrik@votocek.cz> --- charts/kyverno/templates/_helpers/_image.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kyverno/templates/_helpers/_image.tpl b/charts/kyverno/templates/_helpers/_image.tpl index 90f95d0c31..125059f728 100644 --- a/charts/kyverno/templates/_helpers/_image.tpl +++ b/charts/kyverno/templates/_helpers/_image.tpl @@ -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 -}}