code: func GetPodCondition(status *api.PodStatus, conditionType api.PodConditionType) (int, *api.PodCondition) {
  	if status == nil {
  		return -1, nil
  	}
  	for i := range status.Conditions {
  		if status.Conditions[i].Type == conditionType {
  			return i, &status.Conditions[i]
  		}
  	}
  	return -1, nil
  }
docs: // GetPodCondition extracts the provided condition from the given status and returns that.
  // Returns nil and -1 if the condition is not present, and the index of the located condition.