|
|
|
@ -60,3 +60,15 @@ Create the name of the service account to use |
|
|
|
{{- default "default" .Values.serviceAccount.name }} |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
|
|
|
|
|
{{/* |
|
|
|
Select the CronJob API version supported by the target cluster. |
|
|
|
Prefer batch/v1 and fall back to batch/v1beta1 for older Kubernetes versions. |
|
|
|
*/}} |
|
|
|
{{- define "pv-resizer.cronjob.apiVersion" -}} |
|
|
|
{{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.Version -}} |
|
|
|
batch/v1 |
|
|
|
{{- else -}} |
|
|
|
batch/v1beta1 |
|
|
|
{{- end -}} |
|
|
|
{{- end }} |
|
|
|
|