From 81f2f1a1a18725006e254b56730c17b296abe21f Mon Sep 17 00:00:00 2001 From: yanghsinchang Date: Mon, 9 Dec 2024 14:05:15 +0800 Subject: [PATCH] add logic in _helpers.tpl when using sha256 of image --- charts/kafka-ui/templates/_helpers.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/kafka-ui/templates/_helpers.tpl b/charts/kafka-ui/templates/_helpers.tpl index 7155681..5b9a6ea 100644 --- a/charts/kafka-ui/templates/_helpers.tpl +++ b/charts/kafka-ui/templates/_helpers.tpl @@ -76,7 +76,11 @@ This allows us to check if the registry of the image is specified or not. {{- $repository := .Values.image.repository -}} {{- $tag := .Values.image.tag | default .Chart.AppVersion -}} {{- if $registryName }} +{{- if contains "@sha256" $tag }} +{{- printf "%s/%s%s" $registryName $repository $tag -}} +{{- else }} {{- printf "%s/%s:%s" $registryName $repository $tag -}} +{{- end }} {{- else }} {{- printf "%s:%s" $repository $tag -}} {{- end }}