Skip to content

Commit

Permalink
Merge pull request #16 from Bourne-ID-Work/pod-scan
Browse files Browse the repository at this point in the history
Scan pod if unknown owner
  • Loading branch information
rothgar authored Aug 21, 2023
2 parents 6e839c8 + d877367 commit 1f3ca2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,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 {
Expand Down

0 comments on commit 1f3ca2b

Please sign in to comment.