Skip to content

Commit

Permalink
fix: image name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
weixiao-huang authored and huangweixiao committed Aug 31, 2022
1 parent 28647f5 commit 6e8ebd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deploy/helm/virtink/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
1 change: 1 addition & 0 deletions deploy/helm/virtink/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ image:
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.9.0"
digest: ""

nameOverride: ""
fullnameOverride: ""

0 comments on commit 6e8ebd7

Please sign in to comment.