Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Cannot create manual jobs from CronJob #223

Open
zliebersbach opened this issue Oct 21, 2021 · 0 comments
Open

Cannot create manual jobs from CronJob #223

zliebersbach opened this issue Oct 21, 2021 · 0 comments

Comments

@zliebersbach
Copy link

Describe the bug
Creating a manual job from the CronJob fails with an error. This is because the v1beta1 CronJob apiVersion is now deprecated.

To Reproduce
Steps to reproduce the behavior:

  1. Install the backup chart with release name graph-backups
  2. kubectl create job --from=cronjob/graph-backups-job graph-backups-job-manual

Expected behavior
We can create manual job using the --from option.

Error Logs

$ kubectl create job --from=cronjob/graph-backups-job graph-backups-job-manual
error: unknown object type *v1beta1.CronJob

Additional context
We should be using the v1 CronJob apiVersion:

apiVersion: batch/v1

Further reading: https://stackoverflow.com/q/68902269

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant