Open zliebersbach opened 3 years ago
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:
graph-backups
kubectl create job --from=cronjob/graph-backups-job graph-backups-job-manual
Expected behavior We can create manual job using the --from option.
--from
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
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:
graph-backups
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
Additional context We should be using the v1 CronJob apiVersion:
Further reading: https://stackoverflow.com/q/68902269