Creating a Job object from a CronJob object fails

Solution Verified - Updated -

Issue

  • I would like to create a Job object from an existing CronJob however I notice that it fails with the following error:
error: from must be an existing cronjob: no kind "CronJob" is registered for version "batch/v1" in scheme "k8s.io/kubectl/pkg/scheme/scheme.go:28"

Environment

  • Red Hat Openshift container platform 4.8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content