diff --git a/charts/helm-dashboard/templates/_helpers.tpl b/charts/helm-dashboard/templates/_helpers.tpl index 2d479978..1cb76764 100644 --- a/charts/helm-dashboard/templates/_helpers.tpl +++ b/charts/helm-dashboard/templates/_helpers.tpl @@ -74,10 +74,7 @@ Return the proper image name */}} {{- define "helm-dashboard.image" -}} {{- $image := .Values.image -}} -{{- $tag := .Chart.AppVersion -}} -{{- if $image.tag -}} -{{- $tag = $image.tag -}} -{{- end -}} +{{- $tag := default .Chart.AppVersion $image.tag -}} {{- $_ := set $image "tag" $tag -}} {{ include "common.images.image" (dict "imageRoot" $_ "global" .Values.global) }} {{- end -}}