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

storageclass permission is required #645

Merged
merged 1 commit into from
Feb 14, 2018

Conversation

feiskyer
Copy link
Member

Without this, cluster-autoscaler would report errors:

Listing and watching *v1.StorageClass from k8s.io/autoscaler/cluster-autoscaler/vendor/k8s.io/client-go/informers/factory.go:86
k8s.io/autoscaler/cluster-autoscaler/vendor/k8s.io/client-go/informers/factory.go:86: Failed to list *v1.StorageClass: storageclasses.storage.k8s.io is forbidden: User "system:serviceaccount:kube-system:cluster-autoscaler" cannot list storageclasses.storage.k8s.io at the cluster scope

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 13, 2018
@feiskyer
Copy link
Member Author

/assign @mwielgus @MaciekPytel

@@ -56,12 +56,36 @@ metadata:
k8s-app: cluster-autoscaler
rules:
- apiGroups: [""]
resources: ["configmaps"]
resources: ["events","endpoints"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do all of these permissions need to be added to Role in addition to ClusterRole when running on master?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, wrong place of new lines

verbs: ["create"]
- apiGroups: [""]
resources: ["configmaps"]
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for removing permissions for writing configmap in this case?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, wrong place of new lines

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 14, 2018
@feiskyer
Copy link
Member Author

@aleksandra-malinowska Thanks of reviewing. Fixed permissions. PTAL

@mwielgus
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 14, 2018
@mwielgus mwielgus merged commit d7a542e into kubernetes:master Feb 14, 2018
@feiskyer feiskyer deleted the storageclass branch February 14, 2018 12:14
@feiskyer
Copy link
Member Author

@mwielgus Thanks

yaroslava-serdiuk pushed a commit to yaroslava-serdiuk/autoscaler that referenced this pull request Feb 22, 2024
…a1-config

Update documentation for config.kueue.x-k8s.io v1beta1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants