code: func SetDeploymentRevision(deployment *apps.Deployment, revision string) bool {
  	updated := false
  
  	if deployment.Annotations == nil {
  		deployment.Annotations = make(map[string]string)
  	}
  	if deployment.Annotations[RevisionAnnotation] != revision {
  		deployment.Annotations[RevisionAnnotation] = revision
  		updated = true
  	}
  
  	return updated
  }
docs: // SetDeploymentRevision updates the revision for a deployment.