MCPcopy Index your code
hub / github.com/Ladicle/kubectl-rolesum

github.com/Ladicle/kubectl-rolesum @v1.5.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.5.6 ↗ · + Follow
48 symbols 136 edges 13 files 7 documented · 15%

Browse by type

Functions 41 Types & classes 7
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

kubectl-rolesum (ex-bindrole)

Summarize RBAC roles for the specified subject (ServiceAccount, User and Group).

screenshot

Installation

krew

krew is a package manager for k8s plugins. Please see krew document for more detail.

kubectl krew install rolesum

Homebrew (for MacOS)

rolesum supports homebrew :beer:

brew install Ladicle/kubectl-bindrole/kubectl-rolesum

Binaries

The easiest way is to download binary from the release page. You can also download this repository and install it using Makefile.

Usage

$ kubectl rolesum -h  # or kubectl-rolesum -h
Summarize RBAC roles for the specified subject

Usage:
  kubectl rolesum [options] <SubjectName>

Examples:
  # Summarize roles bound to the "ci-bot" ServiceAccount.
  kubectl rolesum ci-bot

  # Summarize roles bound to the "developer" Group.
  kubectl rolesum -k Group developer

SubjectKinds:
  - ServiceAccount (default)
  - User
  - Group

Options:
  -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 command

Use "kubectl rolesum --options" for a list of all options (applies to this command).

This command supports both kubectl-plugin mode and standalone mode.

Core symbols most depended-on inside this repo

Shape

Function 25
Method 16
Struct 7

Languages

Go100%

Modules by API surface

pkg/util/printer/printer.go12 symbols
pkg/util/printer/converter.go10 symbols
pkg/explorer/explorer.go7 symbols
pkg/explorer/subjutil.go4 symbols
cmd/cmd.go4 symbols
pkg/explorer/resource.go3 symbols
pkg/explorer/apipolicy.go3 symbols
main.go2 symbols
pkg/util/cmd/error.go1 symbols
pkg/explorer/stringutil.go1 symbols
cmd/cmd_test.go1 symbols

For agents

$ claude mcp add kubectl-rolesum \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page