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: ""