Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-3642

ROSA HCP - We try to fetch addons even if HCP doesn't support them

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • OCMUI Center Team Sprint 276

      Environment: everywhere

      Url: https://console.dev.redhat.com/openshift/details/s/30MnSXizh4Iiiu3fGsOnAX5egYY#addOns

      Browser: Any

      OS: Any

      Reproduction steps

      • Open any Rosa HCP cluster details page 
      • open the network panel of the browser devtools
      • verify we are trying to fetch addons even if HCP doesn't support them

      Current Result:

      All API calls to GET /api/clusters_mgmt/v1/clusters/{clusterId}/addon_inquiries fail with HTTP 400 for Rosa HCP clusters. React Query will also retry those calls because they are failing but they will always fail.

      Expected Result:

      We don't fetch addons for Rosa HCP clusters because we know in advance they will fail.

      Also because the message we show in the addons panel for HCP ("Coming soon Add-ons will be available soon for hosted control plane clusters.") is hardcoded and it doesn't depend on any API call.

       

              rh-ee-daznauro David Aznaurov
              robertoemanuel Roberto Emanuel
              Jason Loss Jason Loss
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: