-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add addon : pod-security-policy #8454
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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/test-infra repository. I understand the commands that are listed here. |
Welcome @colvin! |
Hi @colvin. 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/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: colvin The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
Create a new addon, `podsecuritypolicies` that applies the PodSecurityPolicy and related RBAC configuration from the https://minikube.sigs.k8s.io/docs/tutorials/using_psp/ tutorial. Apparently, recent work on the addons system has invalidated the procedure shown in that tutorial, as the configuration is no longer automatically applied. The last known working version is `1.6.2`. This allows clusters started with `--extra-configs=apiserver.enable-admission-plugins=PodSecurityPolicy` to succeed, so long as they also include `--addons=podsecuritypolicies`.
38e15d6
to
b32cb5e
Compare
Codecov Report
@@ Coverage Diff @@
## master #8454 +/- ##
=======================================
Coverage 34.05% 34.05%
=======================================
Files 153 153
Lines 9840 9840
=======================================
Hits 3351 3351
Misses 6086 6086
Partials 403 403 |
I signed it |
This time I actually did sign it |
/assign @sharifelgamal |
/test ? |
@colvin: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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/test-infra repository. |
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.
@colvin thank you for making contribution to minikube, could you please justify an example of using this addon, and why this needs to be an addon (maybe with an end to end scenario )
and also the name chosen for this addon is hard to read, could you please choose a better name that is better typed and read
for example of minikube addons
run: minikbue addons list
@medyagh Recent changes to the addons system prevents arbitrary user-supplied files from being applied to the cluster when provisioned, instead only applying those that are specified as an addon. Therefore, unless I'm incorrect, the only way to apply the policy that allows the cluster to start with the PodSecurityPolicy admission plugin is to implement an addon. The name of the addon directly reflects the name of the API ( |
how about a name format that could be read and typed better maybe pod_security_policy could you please an example for this addon maybe as docs in the site or as a tutorial in the site? |
@colvin @Chili-Man thanks for your patience and sorry for the delay in this PR review. it looks good it will be included in the next release v1.1.2.0 thank you for this contribution and I hope you contribute again |
thanks @medyagh , we appreciate it! |
Thanks @medyagh, @Chili-Man |
Create a new addon,
podsecuritypolicies
that applies thePodSecurityPolicy and related RBAC configuration from the
https://minikube.sigs.k8s.io/docs/tutorials/using_psp/ tutorial.
Apparently, recent work on the addons system has invalidated the
procedure shown in that tutorial, as the configuration is no longer
automatically applied. The last known working version is
1.6.2
.This allows clusters started with
--extra-configs=apiserver.enable-admission-plugins=PodSecurityPolicy
to succeed, so long as they also include
--addons=podsecuritypolicies
.Fixes #7314
Fixes #6686