mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
simplify image tag assignment (#558)
Co-authored-by: Aleksandr Cupacenko <alcu@danskebank.lt>
This commit is contained in:
committed by
GitHub
parent
fb39d7e324
commit
0436eabb51
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user