Skip to content

Commit

Permalink
Scan pod if unknown owner
Browse files Browse the repository at this point in the history
  • Loading branch information
Bourne-ID-Work committed Jun 12, 2023
1 parent 4c0634c commit 5dfe199
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 @@ -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 {
Expand Down

0 comments on commit 5dfe199

Please sign in to comment.