code: func ReplicaSetToDeploymentCondition(cond apps.ReplicaSetCondition) apps.DeploymentCondition {
  	return apps.DeploymentCondition{
  		Type:               apps.DeploymentConditionType(cond.Type),
  		Status:             cond.Status,
  		LastTransitionTime: cond.LastTransitionTime,
  		LastUpdateTime:     cond.LastTransitionTime,
  		Reason:             cond.Reason,
  		Message:            cond.Message,
  	}
  }
docs: // ReplicaSetToDeploymentCondition converts a replica set condition into a deployment condition.
  // Useful for promoting replica set failure conditions into deployments.