Fix kubectl-image macro to handle version deprecation
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
@@ -107,8 +107,9 @@ Create the name of the service account to use
|
|||||||
|
|
||||||
{{- define "spire-server.kubectl-image" }}
|
{{- define "spire-server.kubectl-image" }}
|
||||||
{{- $root := deepCopy . }}
|
{{- $root := deepCopy . }}
|
||||||
{{- if eq (len $root.image.version) 0 }}
|
{{- $tag := (default $root.image.tag $root.image.version) | toString }}
|
||||||
{{- $_ := set $root.image "version" $root.KubeVersion }}
|
{{- if eq (len $tag) 0 }}
|
||||||
|
{{- $_ := set $root.image "tag" $root.KubeVersion }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "spire-lib.image" $root }}
|
{{- include "spire-lib.image" $root }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user