code: func (dc *DeploymentController) syncDeploymentStatus(allRSs []*apps.ReplicaSet, newRS *apps.ReplicaSet, d *apps.Deployment) error {
  	newStatus := calculateStatus(allRSs, newRS, d)
  
  	if reflect.DeepEqual(d.Status, newStatus) {
  		return nil
  	}
  
  	newDeployment := d
  	newDeployment.Status = newStatus
  	_, err := dc.client.AppsV1().Deployments(newDeployment.Namespace).UpdateStatus(newDeployment)
  	return err
  }
docs: // syncDeploymentStatus checks if the status is up-to-date and sync it if necessary