static boolean isOpenShiftAPIGroups ( Client client ) { Config configuration = client . getConfiguration ( ) ; if ( configuration instanceof OpenShiftConfig ) { OpenShiftConfig openShiftConfig = ( OpenShiftConfig ) configuration ; if ( openShiftConfig . isDisableApiGroupCheck ( ) ) { return false ; } } URL masterUrl = client . getMasterUrl ( ) ; if ( isOpenShift ( client ) && USES_OPENSHIFT_APIGROUPS . containsKey ( masterUrl ) ) { return USES_OPENSHIFT_APIGROUPS . get ( masterUrl ) ; } return false ; }
Check if OpenShift API Groups are available