-
Notifications
You must be signed in to change notification settings - Fork 781
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: Support setting custom rules in validating/mutatingwebhookconfigurations #1806
Conversation
…gurations Signed-off-by: Mac Chaffee <[email protected]>
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.
Thank you! LGTM
To be clear, I have no objections to making this field customizable, however I do take exception to the reasons as-worded. Listed below: (1) is not accurate... required labels can be enforced against any resource (2) is a matter of preference. The downside is that it couples enforcement of policies to how Gatekeeper is deployed. This means either: A) There is a risk of under-enforcement due to a new policy being added but the VWH config not being updated B) Increased scope of enforcement causing cluster instability due to a sudden increase in requests being sent from the API server to G8r. Either the API server or G8r may not be sized to handle the increased load. This stability vs. cost argument will have different weights depending on the user.
For me, I think there is no one-size-fits-all solution here, so customizability (with conservative defaults) makes sense. |
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
Signed-off-by: Mac Chaffee <[email protected]>
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.
Thanks for the PR @mac-chaffee!
LGTM
When will these changes be reflected in the published helm chart? v3.7.1 does not contain the |
Looks like 3.7.1 was a bugfix release, from the existing |
Any idea when 3.8 will be released? |
Target is the 14th. @ritazh @sozercan, is that still enough time to review open-policy-agent/frameworks#202 (review) ? |
Let's try. But given there are still few other blocking changes remaining, 14th might not be realistic. Given that this PR only touches helm chart, should we alternatively consider cutting v3.7.2? |
What this PR does / why we need it:
This PR allows users of the helm chart to override the default
rules
that control which API resources trigger the webhook.I think this is a valid use-case for gatekeeper to support because:
Leases
for leaderelection.Which issue(s) this PR fixes
Fixes #299
Special notes for your reviewer:
To verify backwards compatibility, I confirmed this change does not alter the helm chart at all by default:
Also: I bumped the chart version since other repos tend to do that, but not sure what the procedure is here.