diff --git a/pkg/test/utils/kubernetes.go b/pkg/test/utils/kubernetes.go index b0078080..9563a1b5 100644 --- a/pkg/test/utils/kubernetes.go +++ b/pkg/test/utils/kubernetes.go @@ -321,7 +321,7 @@ func Namespaced(dClient discovery.DiscoveryInterface, obj runtime.Object, namesp resource, err := GetAPIResource(dClient, obj.GetObjectKind().GroupVersionKind()) if err != nil { - return "", "", err + return "", "", fmt.Errorf("retrieving API resource for %v failed: %v", obj.GetObjectKind().GroupVersionKind(), err) } if !resource.Namespaced {