Skip to content

Commit

Permalink
simplify image tag assignment (#558)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Cupacenko <[email protected]>
  • Loading branch information
unitmatrix and Aleksandr Cupacenko authored Nov 20, 2024
1 parent fb39d7e commit 0436eab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions charts/helm-dashboard/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit 0436eab

Please sign in to comment.