code: func GetDeploymentCondition(status apps.DeploymentStatus, condType apps.DeploymentConditionType) *apps.DeploymentCondition {
  	for i := range status.Conditions {
  		c := status.Conditions[i]
  		if c.Type == condType {
  			return &c
  		}
  	}
  	return nil
  }
docs: // GetDeploymentCondition returns the condition with the provided type.