From 6e8ebd7b7100f998a02d64b8ef8b296f8c2f6ae7 Mon Sep 17 00:00:00 2001 From: weixiao-huang Date: Sat, 20 Aug 2022 08:49:48 +0800 Subject: [PATCH] fix: image name bug --- deploy/helm/virtink/templates/_helpers.tpl | 8 ++++++++ deploy/helm/virtink/values.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/deploy/helm/virtink/templates/_helpers.tpl b/deploy/helm/virtink/templates/_helpers.tpl index a6e7252..4e5f917 100644 --- a/deploy/helm/virtink/templates/_helpers.tpl +++ b/deploy/helm/virtink/templates/_helpers.tpl @@ -56,8 +56,16 @@ app.kubernetes.io/instance: {{ .Release.Name }} {{- $tag := .tag | toString -}} {{- $digest := .digest | toString -}} {{- if $digest }} + {{- if $registryName }} {{- printf "%s/%s@%s" $registryName $repositoryName $digest -}} + {{- else -}} + {{- printf "%s@%s" $repositoryName $digest -}} + {{- end -}} {{- else -}} + {{- if $registryName }} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- else -}} + {{- printf "%s:%s" $repositoryName $tag -}} + {{- end -}} {{- end -}} {{- end -}} diff --git a/deploy/helm/virtink/values.yaml b/deploy/helm/virtink/values.yaml index b430fdb..76d1b26 100644 --- a/deploy/helm/virtink/values.yaml +++ b/deploy/helm/virtink/values.yaml @@ -71,6 +71,7 @@ image: pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: "v0.9.0" + digest: "" nameOverride: "" fullnameOverride: ""