code: func scaleCondition(r *JobPsuedoScaler, precondition *ScalePrecondition, namespace, name string, count uint, updatedResourceVersion *string) wait.ConditionFunc {
  	return func() (bool, error) {
  		rv, err := r.ScaleSimple(namespace, name, precondition, count)
  		if updatedResourceVersion != nil {
  			*updatedResourceVersion = rv
  		}
  		// Retry only on update conflicts.
  		if errors.IsConflict(err) {
  			return false, nil
  		}
  		if err != nil {
  			return false, err
  		}
  		return true, nil
  	}
  }
docs: // ScaleCondition is a closure around Scale that facilitates retries via util.wait