Describe the Bug
Current Job is fine, but CronJob still uses batch/v1beta1 which is not available since Kubernetes v1.25
Applying a cronJob on Kubernetes >= 1.25 get rejected by Kubernetes API server
Expected Behavior
Generated cronJob resources should be accepted.
Steps to Reproduce
Steps to reproduce the behavior:
- Deploy Kubernetes >=1.25 (minikube, kind)
- Edit values.yaml to have
cronJobs.default.enabled to true
helm template monochart . | kubectl apply --dry-run=server -f -
- See error
error: resource mapping not found for name: "monochart-monochart-default" namespace: "" from "STDIN": no matches for kind "CronJob" in version "batch/v1beta1"
ensure CRDs are installed first
Environment:
- kubectl 1.28.2
- kind 0.17.0
- helm version 3.11
- incubator/monochart 0.28.0