kubectl-rolesum
kubectl-rolesum copied to clipboard
Explicitly ignore namespaced Roles
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