-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Chart: Make admission webhook patch job RBAC configurable. #11376
Conversation
…sion-webhooks (#11375) Signed-off-by: Reddysekhar Gaduputi <[email protected]>
Welcome @rgaduput! |
Hi @rgaduput. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
…ADME (#11375) Signed-off-by: Reddysekhar Gaduputi <[email protected]>
/hold |
/triage accepted |
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.
Overall a good job, thank you!
Some thoughts: What do you think about also adding this flag to the PodSecurityPolicy
(I know, it's deprecated) and the ServiceAccount
? At least the latter would be useful and I think this also is how other charts are doing it.
Since the PSP is a more technical and application specific thing, it's probably safe to be always provided by us and just do the real RBAC components manually by disabling the chart provided RBAC.
Also we would highly appreciate some unit tests in the tests/
directory. Do not hesitate to ask for support!
To clarify my comment: Adding this flag to PSP is really optional. I do not have a strong opinion on this and instead rely on yours. |
… for admission-webhooks (#11375) Signed-off-by: Reddysekhar Gaduputi <[email protected]>
Signed-off-by: Reddysekhar Gaduputi <[email protected]>
@Gacko I see that PSP resource already has condition mentioned, so I guess its ok. |
@Gacko Thanks for the suggestions. |
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.
Left "some" suggestions. I think the general direction is clear. 😬
charts/ingress-nginx/templates/admission-webhooks/job-patch/clusterrolebinding.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/templates/admission-webhooks/job-patch/rolebinding.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/templates/admission-webhooks/job-patch/serviceaccount.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/admission-webhooks-service-account_test.yaml
Outdated
Show resolved
Hide resolved
/retitle Chart: Make admission webhook patch job RBAC configurable. |
Signed-off-by: Reddysekhar Gaduputi <[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.
Just some last changes, but looks pretty good apart from that! Gonna LGTM as soon as you applied those. 🙂
charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrole_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/clusterrolebinding_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/role_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/rolebinding_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/serviceaccount_test.yaml
Outdated
Show resolved
Hide resolved
…rrole_test.yaml Co-authored-by: Marco Ebert <[email protected]>
…rrolebinding_test.yaml Co-authored-by: Marco Ebert <[email protected]>
…est.yaml Co-authored-by: Marco Ebert <[email protected]>
…nding_test.yaml Co-authored-by: Marco Ebert <[email protected]>
…eaccount_test.yaml Co-authored-by: Marco Ebert <[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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Gacko, rgaduput The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
What this PR does / why we need it:
The PR adds support to be able to skip the rbac resources creation in helm chart for admission-webhooks. This is needed when deploying in cluster with restricted permissions.
Types of changes
Which issue/s this PR fixes
fixes #11375
How Has This Been Tested?
Using helm template tested both scenarios rbac creation and skip.
Checklist: