code: func GetPodConditionFromList(conditions []v1.PodCondition, conditionType v1.PodConditionType) (int, *v1.PodCondition) {
  	if conditions == nil {
  		return -1, nil
  	}
  	for i := range conditions {
  		if conditions[i].Type == conditionType {
  			return i, &conditions[i]
  		}
  	}
  	return -1, nil
  }
docs: // GetPodConditionFromList extracts the provided condition from the given list of condition and
  // returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.