From 5dfe1995c475c013f04a0d82d617e30133c7d417 Mon Sep 17 00:00:00 2001 From: Robin Bourne Date: Sun, 11 Jun 2023 22:33:57 -0400 Subject: [PATCH] Scan pod if unknown owner --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 6f01a49..ba5a3da 100644 --- a/main.go +++ b/main.go @@ -294,6 +294,10 @@ func printResources(namespace corev1.Namespace, clientset *kubernetes.Clientset, // this prints for pods that say they have an owner but the owner doesn't exist // happens with vcluster clusters and maybe other situations. fmt.Printf("could not find resource manager for type %s for pod %s\n", p.OwnerReferences[0].Kind, p.Name) + found := printVolumes(w, p.Spec.Volumes, namespaceName, "pod", p.Name, verbose) + if found { + sockFound = true + } continue } } else {