feat(helm): find kubectl tag from server version

This commit is contained in:
ptx96
2021-12-22 09:33:27 +01:00
committed by Pietro Terrizzi
parent 778fb4bcc2
commit a179645f26
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -95,7 +95,12 @@ Create the proxy fully-qualified Docker image to use
Create the jobs fully-qualified Docker image to use
*/}}
{{- define "capsule.jobsFullyQualifiedDockerImage" -}}
{{- if .Values.jobs.image.tag }}
{{- printf "%s:%s" .Values.jobs.image.repository .Values.jobs.image.tag -}}
{{- else }}
{{- $kubeversion := print "v" .Capabilities.KubeVersion.Major "." .Capabilities.KubeVersion.Minor -}}
{{- printf "%s:%s" .Values.jobs.image.repository $kubeversion -}}
{{- end }}
{{- end }}
{{/*
+1 -1
View File
@@ -41,7 +41,7 @@ jobs:
image:
repository: quay.io/clastix/kubectl
pullPolicy: IfNotPresent
tag: "v1.20.7"
tag: ""
imagePullSecrets: []
serviceAccount:
create: true