code: func GetNewRCFromList(deployment extensions.Deployment, c client.Interface, getRcList func(string, api.ListOptions) ([]api.ReplicationController, error)) (*api.ReplicationController, error) {
  	namespace := deployment.ObjectMeta.Namespace
  	rcList, err := getRcList(namespace, api.ListOptions{})
  	if err != nil {
  		return nil, fmt.Errorf("error listing replication controllers: %v", err)
  	}
  	newRCTemplate := GetNewRCTemplate(deployment)
  
  	for i := range rcList {
  		if api.Semantic.DeepEqual(rcList[i].Spec.Template, &newRCTemplate) {
  			// This is the new RC.
  			return &rcList[i], nil
  		}
  	}
  	// new RC does not exist.
  	return nil, nil
  }
docs: // GetNewRCFromList returns an RC that matches the intent of the given deployment; get RCList with the input function.
  // Returns nil if the new RC doesnt exist yet.