Skip to content

Commit

Permalink
Ignore IsNoMatchError error
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Aug 23, 2024
1 parent 4850094 commit 78f8ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/graph/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (finder ObjectFinder) ListConnectedObjectIDs(src *unstructured.Unstructured
Connection: conns[0].ResourceConnectionSpec,
Forward: true,
})
if kerr.IsNotFound(err) || (err == nil && len(objects) == 0) {
if kerr.IsNotFound(err) || meta.IsNoMatchError(err) || (err == nil && len(objects) == 0) {
continue
} else if err != nil {
return nil, err
Expand Down

0 comments on commit 78f8ab6

Please sign in to comment.