diff --git a/pkg/apis/shared/v1/object.go b/pkg/apis/shared/v1/object.go index 721d8aff9..1527a126b 100644 --- a/pkg/apis/shared/v1/object.go +++ b/pkg/apis/shared/v1/object.go @@ -40,7 +40,7 @@ type Object struct { func (o *Object) IsEmpty() bool { return o == nil || - (o.Name == "" && o.Namespace != nil) + (o.Name == "" && o.Namespace == nil) } func (o *Object) GetName() string {