Switch image.version to image.tag

The convention in most charts is to use image.tag. This patch updates the values
to use it instead of the less standard image.version.

Signed-off-by: Kevin Fox <[email protected]>
This commit is contained in:
Kevin Fox
2023-05-17 20:21:07 +02:00
committed by Marco Franssen
parent 31ce704fa8
commit d1f3cdb909
10 changed files with 36 additions and 36 deletions
+5 -5
View File
@@ -40,12 +40,12 @@
{{- define "spire-lib.image" -}}
{{- $registry := include "spire-lib.registry" . }}
{{- if eq (substr 0 7 .image.version) "sha256:" -}}
{{- printf "%s/%s@%s" $registry .image.repository .image.version -}}
{{- if eq (substr 0 7 .image.tag) "sha256:" -}}
{{- printf "%s/%s@%s" $registry .image.repository .image.tag -}}
{{- else if .appVersion -}}
{{- printf "%s/%s:%s" $registry .image.repository (default .appVersion .image.version) -}}
{{- else if .image.version -}}
{{- printf "%s/%s:%s" $registry .image.repository .image.version -}}
{{- printf "%s/%s:%s" $registry .image.repository (default .appVersion .image.tag) -}}
{{- else if .image.tag -}}
{{- printf "%s/%s:%s" $registry .image.repository .image.tag -}}
{{- else -}}
{{- printf "%s/%s" $registry .image.repository -}}
{{- end -}}