Skip to content

Commit

Permalink
Update the DefaultTag to .Chart.AppVersion (#2210)
Browse files Browse the repository at this point in the history
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
  • Loading branch information
dashanji committed Nov 8, 2022
1 parent 3ee05f7 commit 4405721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/graphscope-store/templates/_helpers.tpl
Expand Up @@ -75,7 +75,7 @@ Return the proper graphscope-store image name

{{/*
Return the proper image name
{{ include "graphscope-store.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" $ "DefaultTag" .Chart.AppVersion ) }}
{{ include "graphscope-store.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" $ "DefaultTag" .DefaultTag ) }}
*/}}
{{- define "graphscope-store.images.image" -}}
{{- $registryName := .imageRoot.registry -}}
Expand All @@ -87,8 +87,8 @@ Return the proper image name
{{- end -}}
{{- end -}}
{{- if not $tag }}
{{- if .imageRoot.DefaultTag }}
{{- $tag = .imageRoot.DefaultTag -}}
{{- if .DefaultTag }}
{{- $tag = .DefaultTag -}}
{{- else -}}
{{- $tag = "latest" -}}
{{- end -}}
Expand Down

0 comments on commit 4405721

Please sign in to comment.