Description of problem: CronJobs are not registered as a valid Kind Version-Release number of selected component (if applicable): 3.4.0.39 How reproducible: Always Steps to Reproduce: 1. Use example CronJob from documentation (https://docs.openshift.com/container-platform/3.4/dev_guide/cron_jobs.html) Save the following in a file called test-cron.yaml apiVersion: batch/v2alpha1 kind: CronJob metadata: name: pi spec: schedule: "*/1 * * * *" jobTemplate: spec: template: spec: containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] restartPolicy: Never Execute the following from the command line oc create -f test-cron.yaml Actual results: error: unable to recognize "test-cron.yaml": no matches for batch/, Kind=CronJob Expected results: CronJob created successfully Additional info:
This is a documentation issue. CronJob should be ScheduledJob in 3.4
Fix in https://github.com/openshift/openshift-docs/pull/3563
The fix is merged and live.
Verified, the changes is OK.
This is live here: https://docs.openshift.com/container-platform/3.4/dev_guide/scheduled_jobs.html Closing this bug.