Skip to content

Remove resources that are not needed to run cluster capacity analysis. #78

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

Merged

Conversation

aveshagarwal
Copy link
Contributor

@aveshagarwal aveshagarwal commented Jun 9, 2017

@derekwaynecarr

I have reduced resource further to only pods and nodes. With this and RBAC, the only role that is needed to run cluster capacity is:

kind: ClusterRole
apiVersion: v1
metadata:
  name: cc-role
rules:
- apiGroups: [""]
  resources: ["pods", "nodes",  "persistentvolumeclaims", "persistentvolumes", "services"]
  verbs: ["get", "watch", "list"]

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 9, 2017
@aveshagarwal aveshagarwal force-pushed the master-remove-resources branch from 279afa1 to 00ae8cb Compare June 9, 2017 14:32
@aveshagarwal aveshagarwal force-pushed the master-remove-resources branch from 00ae8cb to 1c96a03 Compare June 14, 2017 04:08
@aveshagarwal
Copy link
Contributor Author

@derekwaynecarr as per our discussion, I have updated this PR to only remove replication controllers and replica sets.

The 2nd commit is just to fix gofmt error found in the downstream openshift/cluster-capacity code.

@aveshagarwal
Copy link
Contributor Author

@derekwaynecarr I am going to merge it now, let me know if you see any issues.

@aveshagarwal aveshagarwal merged commit 0471c19 into kubernetes-sigs:master Jun 14, 2017
@aveshagarwal aveshagarwal deleted the master-remove-resources branch September 19, 2017 14:42
ingvagabund pushed a commit that referenced this pull request Jan 4, 2024
OCPBUGS-21639: Bump deps to address CVE-2023-44487
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants