-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Generated crd has a validation error #3082
Comments
That's indeed weird. Can you try with a more recent version of the |
After some investigation, that seems to be an issue with upgrading CRDs from |
This situation is occurring with a fresh minikube and the v1beta1 crd. It does not appear to happen when starting fresh and applying the v1 crd. I'm fine with a manual workaround. |
You mean it happens with just the v1beta1 CRD? Not an upgrade scenario? |
Yes. minikube delete, then start, then "kubectl apply -f ...", then "kubectl get crd ..." and the validation error is there. |
Not that this behavior seems to happen starting with kube 1.20, applying the CRD to 1.19 didn't lead to the validation error. |
Can we close this issue? |
Yes, the resolution is to manually change the generated crd and the problem will go away with v1. |
With crd-generator 5.2.1 my installed generated crd is reporting:
There's nothing on the custom resource class nor in the generated yml that mentions preserveUnknownFields.
cc @metacosm
The text was updated successfully, but these errors were encountered: