-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(dataplane): move DataPlane ports validation to ValidationAdmissionPolicy and ValidationAdmissionPolicyBinding #1007
feat(dataplane): move DataPlane ports validation to ValidationAdmissionPolicy and ValidationAdmissionPolicyBinding #1007
Conversation
4f5da6f
to
22cffd6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we plan on making this repo a source of truth for ValidationAdmissionPolicies, should we add tests verifying them in here?
e112d0a
to
b03db6a
Compare
I agree, as agreed on slack I added tests by extending the crd validation tests in b03db6a PTAL. |
f1333b8
to
e92ea86
Compare
@czeslavo This is ready for review now. Feel free to take a look and comment. |
config/default/validation_policies/dataplane_validation_policies.yaml
Outdated
Show resolved
Hide resolved
8afcb73
to
4ffde37
Compare
41ebe42
to
886290f
Compare
…onPolicy and ValidationAdmissionPolicyBinding
…olicies.yaml to config/default/validation_policies/dataplane_validating_policies.yaml
341246f
to
8c3adfb
Compare
What this PR does / why we need it:
Which issue this PR fixes
Part of #949.
This will get an accompanying charts PR where
ValidationAdmissionPolicy and
ValidationAdmissionPolicyBinding` are added there.This all sets the max items on the
DataPlaneServicePort
array to 4 to potentially cut the added validations cost down.An initial attempt on this was to add CEL rules on the CRD but API server was complaining about the cost of these. With
ValidationAdmissionPolicy
rules it was possible.Special notes for your reviewer:
PR Readiness Checklist:
Complete these before marking the PR as
ready to review
:CHANGELOG.md
release notes have been updated to reflect significant changes