private static PodCondition getPodReadyCondition ( Pod pod ) { Utils . checkNotNull ( pod , "Pod can't be null." ) ; if ( pod . getStatus ( ) == null || pod . getStatus ( ) . getConditions ( ) == null ) { return null ; } for ( PodCondition condition : pod . getStatus ( ) . getConditions ( ) ) { if ( POD_READY . equals ( condition . getType ( ) ) ) { return condition ; } } return null ; }
Returns the ready condition of the pod .