dotnet-operator-sdk
dotnet-operator-sdk copied to clipboard
[bug]: rbac generator is inconsistent
Describe the bug
The output order of the RbacGenerator isn't consistent.
If you rebuild a project, the order the rules are output in operator-role.yaml can change.
They should be output in a consistent order (i.e. alphabetical).
To reproduce
It happens very frequently but is difficult to suggest exactly how to recreate. The problem is the rules are retrieved as an unordered list.
See: https://github.com/buehler/dotnet-operator-sdk/blob/417df6b1449a7eb9466bb6e7701519e4cd5cd5ba/src/KubeOps.Cli/Generators/RbacGenerator.cs#L23
Expected behavior
The output of operator-role.yaml should be consistent and predictable so only real changes are identified and committed to version control.
Screenshots
No response
Additional Context
No response