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

[incubator/monochart]: CronJob is using deprecated batch/v1beta1 apiVersion #277

Open
spiette opened this issue Jul 31, 2024 · 0 comments
Open
Labels

Comments

@spiette
Copy link

spiette commented Jul 31, 2024

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:

  1. Deploy Kubernetes >=1.25 (minikube, kind)
  2. Edit values.yaml to have cronJobs.default.enabled to true
  3. helm template monochart . | kubectl apply --dry-run=server -f -
  4. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant