perf: 增加全局 tag

This commit is contained in:
wojiushixiaobai 2021-11-17 14:40:01 +08:00
parent dab94d4597
commit 40e8925f9c
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,9 @@ Return the proper image name
{{- if .global.imageRegistry }} {{- if .global.imageRegistry }}
{{- $registryName = .global.imageRegistry -}} {{- $registryName = .global.imageRegistry -}}
{{- end -}} {{- end -}}
{{- if .global.imageTag }}
{{- $tag = .global.imageTag -}}
{{- end -}}
{{- end -}} {{- end -}}
{{- if $registryName }} {{- if $registryName }}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}

View File

@ -12,6 +12,7 @@ fullnameOverride: ""
## ##
global: global:
imageRegistry: "docker.io" imageRegistry: "docker.io"
imageTag: v2.15.4
## E.g. ## E.g.
# imagePullSecrets: # imagePullSecrets:
# - myRegistryKeySecretName # - myRegistryKeySecretName