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

Configuration is not supported when creating a managedclusteraddon with spec.configs set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • MCE 2.8.0
    • MCE 2.8.0
    • Server Foundation
    • None
    • 2
    • False
    • None
    • False
    • SF Train-24
    • Low
    • None

      Description of problem:

      Manually creating an addon with spec.configs set like below, the managedclusteraddon ConfigurationUnsupported condition shows "Configuration with gvr addon.open-cluster-management.io/addondeploymentconfigs is not supported for this addon"

      # managedclusteraddon with spec.configs set
      apiVersion: addon.open-cluster-management.io/v1alpha1
      kind: ManagedClusterAddOn
      metadata:
        name: gitops-addon
        namespace: local-cluster
      spec:
        configs:
        - group: addon.open-cluster-management.io
          name: gitops-addon-config
          namespace: local-cluster
          resource: addondeploymentconfigs
        installNamespace: open-cluster-management-agent-addon 

       

      # status
        conditions:
        - lastTransitionTime: "2025-01-24T09:55:59Z"
          message: Configurations configured
          reason: ConfigurationsConfigured
          status: "True"
          type: Configured
        - lastTransitionTime: "2025-01-24T09:55:59Z"
          message: Configuration with gvr addon.open-cluster-management.io/addondeploymentconfigs
            is not supported for this addon
          reason: ConfigurationUnsupported
          status: "False"
          type: Progressing
        - lastTransitionTime: "2025-01-24T09:56:02Z"
          message: The status of gitops-addon add-on is unknown.
          reason: ManagedClusterAddOnLeaseNotFound
          status: Unknown
          type: Available
        configReferences:
        - desiredConfig:
            name: gitops-addon-config
            namespace: local-cluster
            specHash: ""
          group: addon.open-cluster-management.io
          lastObservedGeneration: 1
          name: gitops-addon-config
          namespace: local-cluster
          resource: addondeploymentconfigs
        - desiredConfig:
            name: gitops-addon
            specHash: 2a4f983141e9ea3ce3d2ebcbe62cda6f367a41a119ed1733cc540965e4d62059
          group: addon.open-cluster-management.io
          lastObservedGeneration: 1
          name: gitops-addon
          resource: addontemplates 

       

       

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

      How reproducible:

      Steps to Reproduce:

      1. Create an addon cma supporting config addondeploymentconfigs
      2. Create a managedclusteraddon with spec.configs set like above
      3. Check the addon status

       

      apiVersion: addon.open-cluster-management.io/v1alpha1
      kind: ClusterManagementAddOn
      metadata:
        name: gitops-addon
      spec:
        addOnMeta:
          description: gitops-addon
          displayName: gitops-addon
        installStrategy:
          type: Manual
        supportedConfigs:
        - group: addon.open-cluster-management.io
          resource: addondeploymentconfigs

       

      Actual results:

      The ConfigurationUnsupported condition is false, message shows "Configuration with gvr addon.open-cluster-management.io/addondeploymentconfigs is not supported for this addon"

      Expected results:

      The ConfigurationUnsupported condition should be true

      Additional info:

              qhao@redhat.com Qing Hao
              jiazhu@redhat.com Jian Zhu
              Hui Chen Hui Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: