Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-12933

config-policy-controller does not restart if target kubeconfig changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • ACM 2.11.3
    • ACM 2.11.0
    • GRC
    • None
    • 2
    • False
    • None
    • False
    • GRC Sprint 2024-15
    • Moderate
    • None

      Description of problem:

      When in hosted mode, the target kubeconfig comes from a secret mounted in the pod. If this kubeconfig changes, we need to restart the config-policy-controller so that controller-runtime picks up the new configuration.

      See how this is done in governance-policy-framework:
      https://github.com/open-cluster-management-io/governance-policy-framework-addon/blob/2cbd7fe7bf3fd80cb3e764e904948ea4dbee4370/main.go#L628-L645

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:

      1. ...

      Actual results:

      Expected results:

      Additional info:

      This should be backported to 2.11.1.

              rh-ee-jaszhang Jason Zhang (Inactive)
              mprahl Matthew Prahl
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: