code: func (g *ControlledResourceHandler) getControllerNameAndNamespace(obj meta_v1.Object) (string, string) {
  	var name string
  	ref := meta_v1.GetControllerOf(obj)
  	if ref != nil && ref.APIVersion == g.ControllerGvk.GroupVersion().String() && ref.Kind == g.ControllerGvk.Kind {
  		name = ref.Name
  	}
  	return name, obj.GetNamespace()
  }
docs: // getControllerNameAndNamespace returns name and namespace of the object's controller.
  // Returned name may be empty if the object does not have a controller owner reference.