kubectl-rolesum icon indicating copy to clipboard operation
kubectl-rolesum copied to clipboard

Explicitly ignore namespaced Roles

Open mkgrei opened this issue 1 year ago • 0 comments

Previously in https://github.com/Ladicle/kubectl-rolesum/issues/29 assumed that only ServiceAccount will show namespace Roles. Currently it is not possible for Group/User to show namespace scoped permissions.

In this PR, I removed the implicit assumption for the Subjects, instead added a flag --cluster-only/-c for skipping namespace scoped resources.

It become the user's responsibility to correctly add flags accordingly during execution.

fix #31

mkgrei avatar Jun 05 '23 08:06 mkgrei