Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-1237

Code cleanup: Simplify reconciler code for Roles/Rolebindings

XMLWordPrintable

    • GITOPS Sprint 217

      From GITOPS-1089:

      As a member of the GitOps Engineering Team, I noticed that the reconciliation logic for permissions (Roles, RoleBindings, ServiceAccounts) is often confusing and redundant, resulting in more API server requests than necessary and makes understanding the logic unnecessarily complex and error prone. Because this logic is on a very critical path in the Operator and errors in it can have dire consequences, we should refactor the code to be more simple and understandable and be less complex and less error-prone.

      Based on the design document from GITOPS-1854, we want to implement the updated approach of reconciliation workflow for permissions (Roles, RoleBindings, ServiceAccounts).

      Acceptance Criteria:

      • Implement the updated approach
      • add unit tests and update/add e2e tests to test the updated reconcile workflow

              isequeir@redhat.com Ishita Sequeira
              jpitman63 John Pitman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: