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

multiclusterhub-operator adds empty configOverrides to MCH spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Minor Minor
    • None
    • ACM 2.12.2
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Low
    • None

      Description of problem:

      If the applied mch CR does not contain all of the components (eg leaving out siteconfig entry), then the multiclusterhub-operator is adding an empty configOverrides map to all component in the spec.overrides.components of the MultiClusterHub CR. When the MCH is being managed by an argocd application (gitops env) this causes the MCH CR to always show as "out of sync":

      This is the section of the CR in git:

      spec:
        availabilityConfig: High
        enableClusterBackup: false
        ingress: {}
        overrides:
          components:
          - enabled: true
            name: app-lifecycle
          - enabled: true
            name: cluster-lifecycle
          - enabled: true 

      This is what is seen on the cluster:

        spec:
          availabilityConfig: High
          enableClusterBackup: false
          ingress: {}
          overrides:
            components:
            - configOverrides: {}
              enabled: true
              name: app-lifecycle
            - configOverrides: {}
              enabled: true
              name: cluster-lifecycle 

      The --show-managed-fields shows updates to spec.overrides by argocd and the multiclusterhub-operator with continually updating timestamps.

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

      ACM 2.12.2, MCE 2.7.3

      How reproducible:

      Steps to Reproduce:

      1.  
      2.  
      3. ...

      Actual results:

      Expected results:

      Additional info:

              rh-ee-ngraham Nathaniel Graham
              rhn-support-imiller Ian Miller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: