Skip to content

Commit 5dfe199

Browse files
Scan pod if unknown owner
1 parent 4c0634c commit 5dfe199

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ func printResources(namespace corev1.Namespace, clientset *kubernetes.Clientset,
294294
// this prints for pods that say they have an owner but the owner doesn't exist
295295
// happens with vcluster clusters and maybe other situations.
296296
fmt.Printf("could not find resource manager for type %s for pod %s\n", p.OwnerReferences[0].Kind, p.Name)
297+
found := printVolumes(w, p.Spec.Volumes, namespaceName, "pod", p.Name, verbose)
298+
if found {
299+
sockFound = true
300+
}
297301
continue
298302
}
299303
} else {

0 commit comments

Comments
 (0)