dashboard
dashboard copied to clipboard
No Related Resource link between PVCs and Pods
Internal reference: SURE-4367 Reported in 2.5.12 & 2.6.4
Issue description:
The UI has a "Related Resources" tab on PVCs and Pods, but there is no related resource for pods that consume a PVC
Repro steps:
- Create Pod that consumes a PVC
- View the "Related Resources" tab on that PVC
Workaround: Is workaround available and implemented? no
Actual behavior:
There is no reference to the Pod that consumes that PVC
Expected behavior:
The Pod would be considered a related resource, so should show up as one.
Blocked on backend ticket: https://github.com/rancher/rancher/issues/37599
Do we need it to be in the related resources tab? If not, it's not backend blocked because we could create separate tabs for them, similar to Services and Ingresses on the workload detail page. We already have access to all the Pods, PVs and PVCs, and we know which Pods are bound to PVs. I think we already have enough info to add a Pods tab to the PVC detail page which could also show which PVs the Pods are bound to.
There should be no UI work - leaving this open to validate once the backend work is done
Pod to pvc don`t have ownerReferences, not like pod to deployment. anotherway to fix it is list all pod of namespace and filter which pod is use pvc. When you exec kubectl describe pvc in shell , The logic behind it is also like this. I have fix it in my environment, although it is not elegant enough