From 40e8925f9ce1e1bc548a9fa6fc9a9a6e7886d4fe Mon Sep 17 00:00:00 2001 From: wojiushixiaobai <296015668@qq.com> Date: Wed, 17 Nov 2021 14:40:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A2=9E=E5=8A=A0=E5=85=A8=E5=B1=80=20?= =?UTF-8?q?tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/_images.tpl | 5 ++++- values.yaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/_images.tpl b/templates/_images.tpl index 4beb586..00c457b 100644 --- a/templates/_images.tpl +++ b/templates/_images.tpl @@ -10,6 +10,9 @@ Return the proper image name {{- if .global.imageRegistry }} {{- $registryName = .global.imageRegistry -}} {{- end -}} +{{- if .global.imageTag }} +{{- $tag = .global.imageTag -}} +{{- end -}} {{- end -}} {{- if $registryName }} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} @@ -86,4 +89,4 @@ imagePullSecrets: - name: {{ . }} {{- end }} {{- end }} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/values.yaml b/values.yaml index c253c71..466f18b 100644 --- a/values.yaml +++ b/values.yaml @@ -12,6 +12,7 @@ fullnameOverride: "" ## global: imageRegistry: "docker.io" + imageTag: v2.15.4 ## E.g. # imagePullSecrets: # - myRegistryKeySecretName