Skip to content

Commit 1f3ca2b

Browse files
authored
Merge pull request #16 from Bourne-ID-Work/pod-scan
Scan pod if unknown owner
2 parents 6e839c8 + d877367 commit 1f3ca2b

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
@@ -295,6 +295,10 @@ func printResources(namespace corev1.Namespace, clientset *kubernetes.Clientset,
295295
// this prints for pods that say they have an owner but the owner doesn't exist
296296
// happens with vcluster clusters and maybe other situations.
297297
fmt.Printf("could not find resource manager for type %s for pod %s\n", p.OwnerReferences[0].Kind, p.Name)
298+
found := printVolumes(w, p.Spec.Volumes, namespaceName, "pod", p.Name, verbose)
299+
if found {
300+
sockFound = true
301+
}
298302
continue
299303
}
300304
} else {

0 commit comments

Comments
 (0)