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

Add RBAC rules for CSI csidrivers CRD #19

Merged

Conversation

sarjeet2013
Copy link
Contributor

Add the RBAC rules for csidrivers crd which was missing from rbac.yaml

Tested without the rules and get errors in creating csidrivers CRD objects.

E0109 18:08:45.418972 1 k8s_register.go:118] Failed to create CSIDriver object: csidrivers.csi.storage.k8s.io is forbidden: User "system:serviceaccount:mapr-csi:csi-provisioner-sa" cannot create resource "csidrivers" in API group "csi.storage.k8s.io" at the cluster scope

With fix, Able to get the correct CRD object being created for csidrivers.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 9, 2019
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 9, 2019
@sarjeet2013
Copy link
Contributor Author

/assign @msau42

@@ -24,6 +24,9 @@ rules:
- apiGroups: [""]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the events and nodes rules are not needed. Also, can you change the name of the cluster role to something like "cluster-driver-registrar-role"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated PR. Removed nodes and events RBAC rules and renamed clusterrole.

@msau42
Copy link
Collaborator

msau42 commented Jan 9, 2019

Fixes #3

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 9, 2019
@msau42
Copy link
Collaborator

msau42 commented Jan 9, 2019

Thanks so much! This lgtm. Please squash

@msau42
Copy link
Collaborator

msau42 commented Jan 9, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 9, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msau42, sarjeet2013

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 9, 2019
@k8s-ci-robot k8s-ci-robot merged commit ad6c665 into kubernetes-csi:master Jan 9, 2019
@msau42 msau42 mentioned this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants