code: func IsDeletionCandidate(obj metav1.Object, finalizer string) bool {
  	return obj.GetDeletionTimestamp() != nil && slice.ContainsString(obj.GetFinalizers(),
  		finalizer, nil)
  }
docs: // IsDeletionCandidate checks if object is candidate to be deleted