alcideio/rbac-tool

"show" command does not deduplicate apigroups with different versions

MaxRink opened this issue · 1 comments

What happened:
When running "show" against an 1.23 cluster ive noticed some rbac rules are duplicated.
Namely
"autoscaling" and "policy"
I took a look at why this is happening and found basically the same groups with different versions get iterated over

What you expected to happen:
Groups with different versions get merged
How to reproduce it (as minimally and precisely as possible):
run against a cluster that has multiple versions of resources
Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): 1.23.13
  • Cloud provider or configuration:
  • Install tools:
  • Others:

@MaxRink v1.11.1 should address the duplicate policy rules