Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5208

Topology loads data from all namespaces if no project is selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • openshift-4.7
    • None
    • UI
    • False
    • False
    • Undefined
    • Not Supported
    • ODC Sprint 193

      Description of problem:

      When open the topology and no project is selected (the list of project of projects was shown), it automatically fetches many resources anyway.

      This fetched resources are not filtered for a specific namespace, so it fetches cluster-wide for Deployments, Pods, Jobs, Routes, services, and so on.

      Prerequisites (if any, like setup, operators/versions):

      None

      Steps to Reproduce

      1. Open your browser debug tools and open the network tab
      2. Open the developer perspective, select Topology
      3. If you have selected/favorited a Project previously select "All Projects" from the project dropdown and refresh your browser

      Actual results:

      See many api calls like

      /api/kubernetes/apis/apps.openshift.io/v1/deploymentconfigs?limit=250
      /api/kubernetes/apis/apps/v1/deployments?limit=250
      /api/kubernetes/api/v1/pods?limit=250
      ...
      

      which return data from all namespaces.

      Expected results:

      Topology do not fetch resources from all namespaces if "All projects" is selected (and no topology was shown)

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      4.7 master (commit 3fdbb93c40a17065613c949653e9d02f7e52a5ad)
      tested also on 4.7.0-0.nightly-2020-12-04-013308

      Additional info:

      Side effect is an error in the reconcile logic. Maybe its an good moment to check this also. See first comment.

            jephilli@redhat.com Jeffrey Phillips
            cjerolim Christoph Jerolimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: