Skip to content

fix: Namespace should be nil for audited cluster-scoped resources#2243

Merged
maxsmythe merged 2 commits into
open-policy-agent:masterfrom
maxsmythe:fix-scope-selector-in-audit
Aug 24, 2022
Merged

fix: Namespace should be nil for audited cluster-scoped resources#2243
maxsmythe merged 2 commits into
open-policy-agent:masterfrom
maxsmythe:fix-scope-selector-in-audit

Conversation

@maxsmythe
Copy link
Copy Markdown
Contributor

Signed-off-by: Max Smythe smythe@google.com

What this PR does / why we need it:

Fixes the non-honoring of scope: Namespaced mentioned in #2239

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:

Signed-off-by: Max Smythe <smythe@google.com>
@maxsmythe maxsmythe requested a review from ritazh August 23, 2022 23:57
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 24, 2022

Codecov Report

Merging #2243 (0951b52) into master (6c27092) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #2243      +/-   ##
==========================================
- Coverage   54.52%   54.46%   -0.06%     
==========================================
  Files         111      111              
  Lines        9553     9554       +1     
==========================================
- Hits         5209     5204       -5     
- Misses       3948     3953       +5     
- Partials      396      397       +1     
Flag Coverage Δ
unittests 54.46% <0.00%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
pkg/audit/manager.go 0.00% <0.00%> (ø)
...onstrainttemplate/constrainttemplate_controller.go 57.55% <0.00%> (-1.20%) ⬇️

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

Copy link
Copy Markdown
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!

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.

3 participants