code: func MaxSurge(deployment apps.Deployment) int32 {
  	if !IsRollingUpdate(&deployment) {
  		return int32(0)
  	}
  	// Error caught by validation
  	maxSurge, _, _ := ResolveFenceposts(deployment.Spec.Strategy.RollingUpdate.MaxSurge, deployment.Spec.Strategy.RollingUpdate.MaxUnavailable, *(deployment.Spec.Replicas))
  	return maxSurge
  }
docs: // MaxSurge returns the maximum surge pods a rolling deployment can take.