Skip to content

Commit

Permalink
GetOwnerReferences does not return error (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavid authored Aug 12, 2024
1 parent 266f227 commit 1d6a94f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/podhelper/podhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ func followOwnerReferences(resourceList []*metav1.APIResourceList, dynamicClient
}
// Get owner references of the unstructured object
ownerReferences := resource.GetOwnerReferences()
if err != nil {
return fmt.Errorf("error getting owner references. err= %s", err)
}
// if no owner references, we have reached the top record it
if len(ownerReferences) == 0 {
topOwners[ownerRef.Name] = TopOwner{Kind: ownerRef.Kind, Name: ownerRef.Name, Namespace: namespace}
Expand Down

0 comments on commit 1d6a94f

Please sign in to comment.