func GetPodConditionFromList(conditions []core.PodCondition, conditionType core.PodConditionType) (int, *core.PodCondition) {
	if conditions == nil {
		return -1, nil
	}
	for i := range conditions {
		if conditions[i].Type == conditionType {
			return i, &conditions[i]
		}
	}
	return -1, nil
}
// 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.
// These methods come directly from the Kubernetes code base. We can't import
// them as Kubernetes forbids this. Code can be found here:
// https://github.com/kubernetes/kubernetes/blob/12d9183da03d86c65f9f17e3e28be3c7c18ed22a/pkg/api/pod/util.go
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.
These methods come directly from the Kubernetes code base. We can't import
them as Kubernetes forbids this.
// 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 . // These methods come directly from the Kubernetes code base . We can ' t import // them as Kubernetes forbids this . Code can be found here : // https : // github . com / kubernetes / kubernetes / blob / 12d9183da03d86c65f9f17e3e28be3c7c18ed22a / pkg / api / pod / util . go
func GetPodConditionFromList(conditions []core.PodCondition, conditionType core.PodConditionType) (int, *core.PodCondition) {
	if conditions == nil {
		return -1, nil
	}
	for i := range conditions {
		if conditions[i].Type == conditionType {
			return i, &conditions[i]
		}
	}
	return -1, nil
}
func GetPodConditionFromList ( conditions [ ] core . PodCondition , conditionType core . PodConditionType ) ( int , * core . PodCondition ) { if conditions == nil { return - 1 , nil } for i := range conditions { if conditions [ i ] . Type == conditionType { return i , & conditions [ i ] } } return - 1 , nil }
getPodConditionFromList extracts the provided condition from the given list of condition and
returns the index of the condition and the condition.
getPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition .