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

Open
#277 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
helm, kubernetes

Research direction

Start with incubator/monochart/templates/cronjob.yaml at the apiVersion line referenced in the issue, then run the provided helm template and kubectl server-side dry-run commands. Done means the generated CronJob is accepted on Kubernetes 1.25 or newer without the batch/v1beta1 error.

Written by the indexing model from the issue text.

Description

bug

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
Dominant language
Mustache
Stars
160
Forks
60
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudposse/charts

All issues in cloudposse/charts

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.