Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Ladicle/kubectl-rolesum
Summarize Kubernetes RBAC roles for the specified subjects.
https://github.com/Ladicle/kubectl-rolesum
hacktoberfest krew kubectl-plugin kubernetes podsecuritypolicies rbac
Last synced: 2 months ago
JSON representation
Summarize Kubernetes RBAC roles for the specified subjects.
- Host: GitHub
- URL: https://github.com/Ladicle/kubectl-rolesum
- Owner: Ladicle
- License: mit
- Created: 2019-05-13T14:48:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T02:43:08.000Z (9 months ago)
- Last Synced: 2024-05-18T17:48:47.237Z (8 months ago)
- Topics: hacktoberfest, krew, kubectl-plugin, kubernetes, podsecuritypolicies, rbac
- Language: Go
- Homepage:
- Size: 6.97 MB
- Stars: 298
- Watchers: 8
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - Ladicle/kubectl-rolesum - Summarize Kubernetes RBAC roles for the specified subjects. (Go)
- awesome-hacking-lists - Ladicle/kubectl-rolesum - Summarize Kubernetes RBAC roles for the specified subjects. (Go)
README
# kubectl-rolesum (ex-bindrole)
Summarize RBAC roles for the specified subject (ServiceAccount, User and Group).
![screenshot](./img/screenshot.png)
## Installation
### krew
[krew](https://github.com/kubernetes-sigs/krew) is a package manager for k8s plugins.
Please see [krew document](https://github.com/kubernetes-sigs/krew) for more detail.```bash
kubectl krew install rolesum
```### Homebrew (for MacOS)
rolesum supports [homebrew](https://docs.brew.sh/Installation) :beer:
```bash
brew install Ladicle/kubectl-bindrole/kubectl-rolesum
```### Binaries
The easiest way is to download binary from the [release page](https://github.com/Ladicle/kubectl-rolesum/releases).
You can also download this repository and install it using Makefile.## Usage
```bash
$ kubectl rolesum -h # or kubectl-rolesum -h
Summarize RBAC roles for the specified subjectUsage:
kubectl rolesum [options]Examples:
# Summarize roles bound to the "ci-bot" ServiceAccount.
kubectl rolesum ci-bot# Summarize roles bound to the "developer" Group.
kubectl rolesum -k Group developerSubjectKinds:
- ServiceAccount (default)
- User
- GroupOptions:
-h, --help Display this help message
-n, --namespace string Change the namespace scope for this CLI request
-k, --subject-kind string Set SubjectKind to summarize (default: ServiceAccount)
-o, --options List of all options for this command
-c, --cluster-only Ingore namespaced Roles and show only ClusterRoles
--version Show version for this commandUse "kubectl rolesum --options" for a list of all options (applies to this command).
```This command supports both kubectl-plugin mode and standalone mode.