-
Notifications
You must be signed in to change notification settings - Fork 731
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: Upgrade constraint framework to add new K8s Native Validation driver schema #2951
feat: Upgrade constraint framework to add new K8s Native Validation driver schema #2951
Conversation
…schema Signed-off-by: Max Smythe <smythe@google.com>
227a855
to
b24909e
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #2951 +/- ##
==========================================
- Coverage 53.17% 53.09% -0.09%
==========================================
Files 135 135
Lines 11806 11806
==========================================
- Hits 6278 6268 -10
- Misses 5044 5052 +8
- Partials 484 486 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
messageExpression: '"missing required label, requires all of: " + params.spec.parameters.labels.map(entry, entry.key).join(", ")' | ||
- expression: "!params.spec.parameters.labels.exists(entry, has(object.metadata.labels) && entry.key in object.metadata.labels && !string(object.metadata.labels[entry.key]).matches(string(entry.allowedRegex)))" | ||
message: "regex mismatch" | ||
validations: |
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.
This is going to break with 3.13.0 release right? How about updating the readme in this folder to build from head or use openpolicyagent/gatekeeper:dev
?
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.
Ah, good point.
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.
updated
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.
LGTM
Just one nit
Signed-off-by: Max Smythe <smythe@google.com>
…river schema (open-policy-agent#2951) Signed-off-by: Max Smythe <smythe@google.com>
This updates the schema for the K8sNativeValidation driver to match the design doc in https://docs.google.com/document/d/1FgwMQHEzKaBMQzsbWkBfuUiNcALOKyJJ3_WkgP-L7mo/edit
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #
Special notes for your reviewer: