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
Enable schema validation for validate policies #1869
Comments
Hi @realshuting, I would like to work on this one. |
See also relevant comment here. |
Alright, I got your point that we need to adapt validation according to the case. I will consider all those points within the PR(if applicable) and you can then look up if there's something missing. |
@anishagg17 are you still working on this issue? |
Hi @realshuting, I would like to work on this issue. Could you please provide some pointers, resources to start with. |
@harshitasao - did you check the issue description #1869 (comment)? |
Is your feature request related to a problem? Please describe.
With Kyverno v1.3.6-rc1, the schema validation(of the resource) is only enabled for the mutate policy, not validate.
If I create the mutate policy with the following overlay, Kyverno denies it as it's invalid.
But the following validate policy can be created successfully:
Describe the solution you'd like
The logic is there to check the mutate policy, we just need to extend it for the validate policy.
kyverno/pkg/openapi/validation.go
Lines 111 to 119 in f921bf4
The text was updated successfully, but these errors were encountered: