Skip to content
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

Merged
merged 3 commits into from
Aug 16, 2023

Conversation

maxsmythe
Copy link
Contributor

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:

@maxsmythe maxsmythe changed the title [feat] Upgrade constraint framework to add new K8s Native Validation driver schema feat: Upgrade constraint framework to add new K8s Native Validation driver schema Aug 12, 2023
…schema

Signed-off-by: Max Smythe <smythe@google.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.09% ⚠️

Comparison is base (5e0e0c0) 53.17% compared to head (fe0ef8b) 53.09%.
Report is 1 commits behind head on master.

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     
Flag Coverage Δ
unittests 53.09% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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:
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Member

@ritazh ritazh left a 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

@maxsmythe maxsmythe merged commit 66d84f3 into open-policy-agent:master Aug 16, 2023
15 of 16 checks passed
salaxander pushed a commit to salaxander/gatekeeper that referenced this pull request Sep 13, 2023
…river schema (open-policy-agent#2951)

Signed-off-by: Max Smythe <smythe@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants