Skip to content

[bug]: rbac generator is inconsistent #871

Closed

Description

@jamescooke-xyz

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

Activity

  1. added
    bug
    on Apr 22, 2025
  2. changed the title [-][bug]:[/-] [+][bug]: rbac generator is inconsistent[/+] on Apr 30, 2025
  3. Copilot commented on Mar 25, 2026

    Copilot

    The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists.

  4. added a commit that references this issue on May 2, 2026
    b548947
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions