Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cronjob apiVersion - Kubernetes version 1.25+ #105

Open
sberryman opened this issue Jul 27, 2023 · 0 comments
Open

Cronjob apiVersion - Kubernetes version 1.25+ #105

sberryman opened this issue Jul 27, 2023 · 0 comments

Comments

@sberryman
Copy link

The backup full/incremental charts are using the old apiVersion: batch/v1beta1 value which prevents use on k8 version 1.25+. batch/v1 has been stable since 1.21.

What are your thoughts on checking the capabilities and automatically changing the version OR using a values override?

{{ if or ($.Capabilities.APIVersions.Has "batch/v1/CronJob") (eq $.Values.global.batch.cronJob.apiVersion "batch/v1") -}}
apiVersion: batch/v1
{{- else -}}
apiVersion: batch/v1beta1
{{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant