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

Wrap all RBAC resources in a conditional based on values.rbac.create #1625

Merged
merged 7 commits into from
Nov 2, 2021

Conversation

rtmie
Copy link
Contributor

@rtmie rtmie commented Oct 21, 2021

Signed-off-by: Rob Mason [email protected]

What this PR does / why we need it:
Ensures that all RBAC resource creation is subject to helm value rbac.create which is default true.

Required for users in orgs where RBAC is managed by out of band security team and not directly from helm.

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:

@codecov-commenter
Copy link

Codecov Report

Merging #1625 (9fd0319) into master (7526893) will decrease coverage by 0.19%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1625      +/-   ##
==========================================
- Coverage   54.30%   54.10%   -0.20%     
==========================================
  Files          94       94              
  Lines        8178     8178              
==========================================
- Hits         4441     4425      -16     
- Misses       3388     3402      +14     
- Partials      349      351       +2     
Flag Coverage Δ
unittests 54.10% <ø> (-0.20%) ⬇️

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

Impacted Files Coverage Δ
...onstrainttemplate/constrainttemplate_controller.go 55.13% <0.00%> (-3.11%) ⬇️
pkg/controller/config/config_controller.go 65.04% <0.00%> (-1.33%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7526893...9fd0319. Read the comment docs.

@@ -91,3 +91,5 @@ psp:
enabled: true
upgradeCRDs:
enabled: true
rbac:
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sozercan Done!

@sozercan sozercan requested a review from maxsmythe November 1, 2021 23:43
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

@sozercan sozercan merged commit c2844a6 into open-policy-agent:master Nov 2, 2021
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.

5 participants