func GetPodCondition(status *core.PodStatus, conditionType core.PodConditionType) (int, *core.PodCondition) {
	if status == nil {
		return -1, nil
	}
	return GetPodConditionFromList(status.Conditions, conditionType)
}
// 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.
// 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
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.
These methods come directly from the Kubernetes code base. We can't import
them as Kubernetes forbids this.
// 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 . // 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 GetPodCondition(status *core.PodStatus, conditionType core.PodConditionType) (int, *core.PodCondition) {
	if status == nil {
		return -1, nil
	}
	return GetPodConditionFromList(status.Conditions, conditionType)
}
func GetPodCondition ( status * core . PodStatus , conditionType core . PodConditionType ) ( int , * core . PodCondition ) { if status == nil { return - 1 , nil } return GetPodConditionFromList ( status . Conditions , conditionType ) }
getPodCondition extracts the provided condition from the given status and returns that.
getPodCondition extracts the provided condition from the given status and returns that .