-
Notifications
You must be signed in to change notification settings - Fork 40.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
Added node to persistent-volume-binder clusterrole #46771
Added node to persistent-volume-binder clusterrole #46771
Conversation
Hi @n-marton. 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 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. I understand the commands that are listed here. |
@@ -188,6 +188,8 @@ func init() { | |||
rbac.NewRule("get", "list", "watch").Groups(storageGroup).Resources("storageclasses").RuleOrDie(), | |||
rbac.NewRule("get", "create", "delete").Groups(legacyGroup).Resources("services", "endpoints").RuleOrDie(), | |||
rbac.NewRule("get").Groups(legacyGroup).Resources("secrets").RuleOrDie(), | |||
// openstack | |||
rbac.NewRule("get", "list").Groups(legacyGroup).Resources("nodes").RuleOrDie(), |
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.
where is this used? I see it in the attach-detach controller, but not in the binder
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 |
@k8s-bot ok to test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, n-marton The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Are those three failed relevant here? |
@k8s-bot pull-kubernetes-e2e-kops-aws test this |
@n-marton: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
Automatic merge from submit-queue (batch tested with PRs 46734, 46810, 46759, 46259, 46771) |
…vailable in the Cluster Backport of K8s PR kubernetes#46771. Cinder provisioner chooses a zone from the list of zones available in the cluster in case no zone is specified in the corresponding Storage Class. However, currently the provisioner (persistent-volume-binder) does not have right to get the list of nodes/zones available in the cluster. That's why the persistent-volume-binder is being given permission to list and watch nodes in the cluster. Note: the above problem was fixed in openshift/ose@54b994c however, the fix was mistakenly "deleted" in openshift/ose@8c7065f :100644 100644 f82ab0fe3c... fb3501d849... M plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go :100644 100644 72c5d81d84... d06e2271f7... M plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-roles.yaml
…vailable in the Cluster Backport of K8s PR kubernetes#46771. Cinder provisioner chooses a zone from the list of zones available in the cluster in case no zone is specified in the corresponding Storage Class. However, currently the provisioner (persistent-volume-binder) does not have right to get the list of nodes/zones available in the cluster. That's why the persistent-volume-binder is being given permission to list and watch nodes in the cluster. Note: the above problem was fixed in openshift/ose@54b994c however, the fix was mistakenly "deleted" in openshift/ose@8c7065f :100644 100644 f82ab0fe3c... fb3501d849... M plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go :100644 100644 72c5d81d84... d06e2271f7... M plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-roles.yaml
What this PR does / why we need it: Added missing permission to volume-binder clusterrole
Which issue this PR fixes: fixes #46770
Special notes for your reviewer: Non
Release note: Non