code: func SetDeploymentAnnotationsTo(deployment *apps.Deployment, rollbackToRS *apps.ReplicaSet) {
  	deployment.Annotations = getSkippedAnnotations(deployment.Annotations)
  	for k, v := range rollbackToRS.Annotations {
  		if !skipCopyAnnotation(k) {
  			deployment.Annotations[k] = v
  		}
  	}
  }
docs: // SetDeploymentAnnotationsTo sets deployment's annotations as given RS's annotations.
  // This action should be done if and only if the deployment is rolling back to this rs.
  // Note that apply and revision annotations are not changed.