-
Notifications
You must be signed in to change notification settings - Fork 125
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
CRD validation doesn't support validating maps #26
Comments
@pwittrock This is already being tracked in kubernetes/kubernetes#59485. |
Closing in favor of kubernetes/kubernetes#59485. /close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According the openapi spec maps are represented as a:
However when using a CRD with that validation it accepts requests that shouldn't validate:
Successfully created this yaml (shouldn't have)
Note: I have also gotten this error when using the go-client library to create the CRD spec:
I suspect this is because when unmarshalling the json, Allows is not set to true:
https://github.com/kubernetes/apiextensions-apiserver/blob/master/pkg/apis/apiextensions/v1beta1/marshal.go#L43
The text was updated successfully, but these errors were encountered: