We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9689f74 commit 10e9b77Copy full SHA for 10e9b77
pkg/workloads/workloads.go
@@ -73,6 +73,7 @@ func getPodsFromWorkload(target types.AppDetails, allPods *kcorev1.PodList, dyna
73
func GetPodOwnerTypeAndName(pod *kcorev1.Pod, dynamicClient dynamic.Interface) (parentType, parentName string, err error) {
74
for _, owner := range pod.GetOwnerReferences() {
75
parentName = owner.Name
76
+ parentType = strings.ToLower(owner.Kind)
77
if owner.Kind == "StatefulSet" || owner.Kind == "DaemonSet" {
78
return strings.ToLower(owner.Kind), parentName, nil
79
}
0 commit comments