File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Creates the address of the TSA service.
7878Determine version of Kubernetes cluster
7979*/} }
8080{ {- define " concourse.kubeVersion" -} }
81- { {- print (.Capabilities.KubeVersion.GitVersion | replace " v" " " ) -} }
81+ { {- print (.Capabilities.KubeVersion.Version | replace " v" " " ) -} }
8282{ {- end -} }
8383
8484{ {/*
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ spec:
171171 - key : worker-additional-certs
172172 path : worker-additional-certs.pem
173173 {{- end }}
174- {{- if semverCompare "^1.7-0" .Capabilities.KubeVersion.GitVersion }}
174+ {{- if semverCompare "^1.7-0" .Capabilities.KubeVersion.Version }}
175175 strategy :
176176{{ toYaml .Values.worker.updateStrategy | indent 4 }}
177177 {{- end }}
Original file line number Diff line number Diff line change 11{{- if .Values.concourse.worker.autoscaling }}
22 {{- if .Values.concourse.worker.autoscaling.maxReplicas }}
3- {{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion -}}
3+ {{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.Version -}}
44apiVersion : autoscaling/v2
55{{- else -}}
66apiVersion : autoscaling/v2beta2
Original file line number Diff line number Diff line change 11{{- if .Values.worker.enabled -}}
2- {{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
2+ {{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.Version -}}
33apiVersion : policy/v1
44{{- else -}}
55apiVersion : policy/v1beta1
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ spec:
231231 {{- end }}
232232 {{- end }}
233233 {{- end }}
234- {{- if semverCompare "^1.7-0" .Capabilities.KubeVersion.GitVersion }}
234+ {{- if semverCompare "^1.7-0" .Capabilities.KubeVersion.Version }}
235235 updateStrategy :
236236{{ toYaml .Values.worker.updateStrategy | indent 4 }}
237237 {{- end }}
You can’t perform that action at this time.
0 commit comments