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 MachineSets #210

Merged
merged 1 commit into from
May 18, 2021

Conversation

furkatgofurov7
Copy link
Member

What this PR does / why we need it:
There is a rbac issue with MachineSets while scaling up worker and Metal3MachineController logs outputs:

`E0518 07:49:42.976339       1 reflector.go:153] pkg/mod/k8s.io/client-go@v0.17.9/tools/cache/reflector.go:105: Failed to list *v1alpha3.MachineSet: machinesets.cluster.x-k8s.io is forbidden: User "system:serviceaccount:capm3-system:default" cannot list resource "machinesets" in API group "cluster.x-k8s.io" at the cluster scope
`

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 18, 2021
@furkatgofurov7 furkatgofurov7 changed the title 🌱 Add rbac for MachineSets 🌱 Add rbac rules for MachineSets May 18, 2021
@furkatgofurov7
Copy link
Member Author

/test-integration

@furkatgofurov7
Copy link
Member Author

/cc @kashifest

@furkatgofurov7
Copy link
Member Author

/test-centos-integration

config/rbac/role.yaml Outdated Show resolved Hide resolved
Copy link
Member

@kashifest kashifest left a comment

Choose a reason for hiding this comment

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

I agree with @fmuyassarov lets minimize the verbs to those that is needed only.

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: furkatgofurov7, kashifest

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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 18, 2021
@metal3-io-bot metal3-io-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 18, 2021
@furkatgofurov7
Copy link
Member Author

/test-centos-integration
/test-integration

@furkatgofurov7
Copy link
Member Author

I agree with @fmuyassarov lets minimize the verbs to those that is needed only.

Okay, fixed.

@fmuyassarov
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label May 18, 2021
@metal3-io-bot metal3-io-bot merged commit 39bac7a into metal3-io:master May 18, 2021
@furkatgofurov7 furkatgofurov7 deleted the rbac-ms/furkat branch May 18, 2021 10:43
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants