code: func DeploymentHasDesiredReplicas(c ExtensionsInterface, deployment *extensions.Deployment) wait.ConditionFunc {
  
  	return func() (bool, error) {
  		deployment, err := c.Deployments(deployment.Namespace).Get(deployment.Name)
  		if err != nil {
  			return false, err
  		}
  		return deployment.Status.UpdatedReplicas == deployment.Spec.Replicas, nil
  	}
  }
docs: // DeploymentHasDesiredReplicas returns a condition that will be true if and only if
  // the desired replica count for a deployment equals its updated replicas count.
  // (non-terminated pods that have the desired template spec).