Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-36106

make generate v1 permissions deterministic

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • None
    • 3
    • Access & Management Sprint 99

      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

              rh-ee-dagbay Daniel Agbay
              rh-ee-dagbay Daniel Agbay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: