Fix hooks for K3s (#305)

Co-authored-by: kfox1111 <[email protected]>
This commit is contained in:
Faisal Memon
2023-05-23 08:59:21 -07:00
committed by GitHub
co-authored by kfox1111
parent 88efc77bee
commit 1922085ba7
@@ -109,7 +109,7 @@ Create the name of the service account to use
{{- $root := deepCopy . }} {{- $root := deepCopy . }}
{{- $tag := (default $root.image.tag $root.image.version) | toString }} {{- $tag := (default $root.image.tag $root.image.version) | toString }}
{{- if eq (len $tag) 0 }} {{- if eq (len $tag) 0 }}
{{- $_ := set $root.image "tag" $root.KubeVersion }} {{- $_ := set $root.image "tag" (regexReplaceAll "^(v?\\d+\\.\\d+\\.\\d+).*" $root.KubeVersion "${1}") }}
{{- end }} {{- end }}
{{- include "spire-lib.image" $root }} {{- include "spire-lib.image" $root }}
{{- end }} {{- end }}