code: func GetNewReplicaSetTemplate(deployment extensions.Deployment) api.PodTemplateSpec {
  	// newRS will have the same template as in deployment spec, plus a unique label in some cases.
  	newRSTemplate := api.PodTemplateSpec{
  		ObjectMeta: deployment.Spec.Template.ObjectMeta,
  		Spec:       deployment.Spec.Template.Spec,
  	}
  	newRSTemplate.ObjectMeta.Labels = labelsutil.CloneAndAddLabel(
  		deployment.Spec.Template.ObjectMeta.Labels,
  		extensions.DefaultDeploymentUniqueLabelKey,
  		podutil.GetPodTemplateSpecHash(newRSTemplate))
  	return newRSTemplate
  }
docs: // Returns the desired PodTemplateSpec for the new ReplicaSet corresponding to the given ReplicaSet.