Process cluster-scoped owners correctly

This commit is contained in:
Jordan Liggitt
2017-12-14 15:43:37 -05:00
parent bba84d785e
commit 34c3a254d8
5 changed files with 159 additions and 8 deletions

View File

@@ -297,7 +297,7 @@ func (gc *GarbageCollector) isDangling(reference metav1.OwnerReference, item *no
if err != nil {
return false, nil, err
}
resource, err := gc.apiResource(reference.APIVersion, reference.Kind, len(item.identity.Namespace) != 0)
resource, err := gc.apiResource(reference.APIVersion, reference.Kind)
if err != nil {
return false, nil, err
}