INNER CODE UNIT · Go

NewCommandLookup

alcideio/rbac-tool · cmd/lookup_cmd.go:16

func NewCommandLookup() *cobra.Command {

	clusterContext := ""
	regex := ""
	inverse := false

	// Support overrides
	cmd := &cobra.Command{
		Use:     "lookup",
		Aliases: []string{"look"},
		Short:   "RBAC Lookup by subject (user/group/serviceaccount) name",
		Long: `
A Kubernetes RBAC lookup of Roles/ClusterRoles used by a given User/ServiceAccount/Group

Examples:

# Search All Service Accounts
rbac-tool lookup

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…