Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot create a customresourcedefinition that has been exported via 'oc get -o yaml|json' command and then deleted #1260

Closed
radtriste opened this issue Jan 29, 2020 · 1 comment

Comments

@radtriste
Copy link

Not sure if it is the right place. Please let me know if it is not.

What did you do?

$ oc get crd {CRD_NAME} -o yaml > file
$ oc delete crd {CRD_NAME}
$ oc create -f file

What did you expect to see?
CRD should be imported into the cluster.

What did you see instead? Under which circumstances?
The CustomResourceDefinition "{CRD_NAME}" is invalid: spec.preserveUnknownFields: Invalid value: true: cannot set to true, set x-preserve-unknown-fields to true in spec.versions[*].schema instead

Environment

  • OpenShift 4.3-rc3

Possible Solution
Correct the export via oc get command

Additional context
No CR existing in the cluster.

@radtriste
Copy link
Author

Created Openshift issue instead: openshift/origin#24476

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

No branches or pull requests

1 participant