-
Task
-
Resolution: Done
-
Normal
-
None
in rbac config actions, we have a this action: https://github.com/dagbay-rh/rbac-config-actions/tree/main/generate-v1-only-permissions
this action will generate a KSIL file representing permissions declared in V1 (rbac) but not yet migrated to the V2 model (relations)
right now the action is non-deterministic, in that the KSIL file it generates could be ordered differently every time the action is run. This makes looking at the diff hard to interpret as very little could have actually changed, but its hard to tell because of the ordering of the output
this line: https://github.com/dagbay-rh/rbac-config-actions/blob/main/generate-v1-only-permissions/v1/V1.go#L70 is why the output is randomized. We need to sort the map somehow after generating it in order to order the output the same way every run