neo4j-contrib / neo4j-helm

Helm Charts for running Neo4j on Kubernetes [DEPRECATED]
https://neo4j-contrib.github.io/neo4j-helm/user-guide/USER-GUIDE.html
Apache License 2.0
88 stars 81 forks source link

Cannot create manual jobs from CronJob #223

Open zliebersbach opened 3 years ago

zliebersbach commented 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:

  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