Repository navigation
Added PVController service account - #5465
Conversation
There was a problem hiding this comment.
you need to define this role in bootstrappolicy/policy.go (see JobControllerRoleName definition as an example). Include all API calls, verbs and objects the persistent volume controller's client will need to be permitted to do.
|
Update |
|
I expect to have the new SCCs in by the end of the week, tomorrow if I can finish babysitting my other PR shortly. I have not had a chance to look at a reconcile command yet. @markturansky as @liggitt suggests we'll want to add your new SA to a HostMount enabled SCC that is not the privileged SCC. We can change the method signature to provide a |
d0f927a to
44670ac
Compare
715f1d2 to
98171a4
Compare
|
should probably include a test that ensures this works with the defined OpenShift policy |
|
Let's try to get the test in tomorrow morning |
There was a problem hiding this comment.
comment is wrong. You're adding to the HostMount SCC
|
Just nit. It could use a squash and a test. Then lgtm. |
There was a problem hiding this comment.
when would the controller create a PV?
There was a problem hiding this comment.
The provisioning pieces (which were declined for 3.1) will require Create and Delete of PVs.
There was a problem hiding this comment.
does deleting a PV come from the recycler? if so, move that to the recycler section
There was a problem hiding this comment.
I arranged them this way just to avoid duplication.
Both the binder and recycler require Get/Update. Recycler requires Create/Delete. They are all in one here, since it's the same account.
71aca6c to
64b3c3c
Compare
|
Feedback addressed and squashed. Will get to the e2e test promptly. |
|
nit at #5465 (comment), then LGTM |
ed236fa to
1e93934
Compare
|
LGTM, [test] |
There was a problem hiding this comment.
per the other comment, added "get" here, which follows where "get" lives in the other defined policies.
There was a problem hiding this comment.
[merge]
On Wed, Nov 4, 2015 at 3:10 PM, Mark Turansky [email protected]
wrote:
In pkg/cmd/server/bootstrappolicy/policy.go
#5465 (comment):
Verbs: sets.NewString("get", "update"),Resources: sets.NewString("persistentvolumeclaims"),},// PersistentVolumeBinder.syncClaim(){Verbs: sets.NewString("update"),Resources: sets.NewString("persistentvolumeclaims/status"),},// PersistentVolumeRecycler.reclaimVolume() -> handleRecycle(){Verbs: sets.NewString("list", "watch"),Resources: sets.NewString("pods"),},// PersistentVolumeRecycler.reclaimVolume() -> handleRecycle(){Verbs: sets.NewString("get", "create", "delete"),per the other comment, added "get" here, which follows where "get" lives
in the other defined policies.—
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/5465/files#r43932540.
|
Evaluated for origin test up to 1e93934 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6898/) |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6898/) (Image: devenv-rhel7_2638) |
|
Evaluated for origin merge up to 1e93934 |
Resolves #3286
@liggitt @deads2k Please let me know what else needs to happen for this account. I'm not familiar with this functionality.