dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

No Related Resource link between PVCs and Pods

Open gaktive opened this issue 3 years ago • 2 comments

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.

gaktive avatar Apr 14 '22 23:04 gaktive

Blocked on backend ticket: https://github.com/rancher/rancher/issues/37599

nwmac avatar May 05 '22 10:05 nwmac

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.

catherineluse avatar Jul 13 '22 22:07 catherineluse

There should be no UI work - leaving this open to validate once the backend work is done

nwmac avatar Sep 07 '22 09:09 nwmac

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

image

hhstu avatar Nov 29 '23 03:11 hhstu