code: func ObjectMetaFieldsSet(objectMeta *metav1.ObjectMeta, hasNamespaceField bool) fields.Set {
  	if !hasNamespaceField {
  		return fields.Set{
  			"metadata.name": objectMeta.Name,
  		}
  	}
  	return fields.Set{
  		"metadata.name":      objectMeta.Name,
  		"metadata.namespace": objectMeta.Namespace,
  	}
  }
docs: // ObjectMetaFieldsSet returns a fields that represent the ObjectMeta.