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: add support for exempt namespace suffix #2636

Merged

Conversation

VirrageS
Copy link
Contributor

What this PR does / why we need it: This patch is to add support for exempt namespace suffixes. It is sometimes convenient to use suffix rather than prefix. This is especially useful when namespace is in form <tenant>-<suffix> in which case we would like to exempt certain namespaces for all tenants. This feature is backward compatible.

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): None

Special notes for your reviewer: None

Copy link
Contributor

@maxsmythe maxsmythe left a 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!

LGTM after charts/ is reverted.

@codecov-commenter
Copy link

codecov-commenter commented Mar 24, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.19 🎉

Comparison is base (ea255fa) 53.05% compared to head (79ea2c1) 53.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2636      +/-   ##
==========================================
+ Coverage   53.05%   53.24%   +0.19%     
==========================================
  Files         120      120              
  Lines       10587    10594       +7     
==========================================
+ Hits         5617     5641      +24     
+ Misses       4530     4518      -12     
+ Partials      440      435       -5     
Flag Coverage Δ
unittests 53.24% <100.00%> (+0.19%) ⬆️

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

Impacted Files Coverage Δ
pkg/webhook/namespacelabel.go 80.85% <100.00%> (+10.85%) ⬆️

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@VirrageS VirrageS requested review from maxsmythe and removed request for sozercan March 24, 2023 09:42
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for the PR!

Signed-off-by: Janusz Marcinkiewicz <januszm@nvidia.com>
@VirrageS
Copy link
Contributor Author

I had to fix one more thing in manifests, should be good to test now.

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
Thanks for the PR!

@ritazh ritazh merged commit 8b7a861 into open-policy-agent:master Mar 27, 2023
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Mar 31, 2023
Signed-off-by: Janusz Marcinkiewicz <januszm@nvidia.com>
salaxander pushed a commit to salaxander/gatekeeper that referenced this pull request Apr 5, 2023
Signed-off-by: Janusz Marcinkiewicz <januszm@nvidia.com>
Signed-off-by: Xander Grzywinski <xandergr@microsoft.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

4 participants