-
Bug
-
Resolution: Done
-
Undefined
-
None
-
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
- Open your browser debug tools and open the network tab
- Open the developer perspective, select Topology
- 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.