public static String getKind ( HasMetadata entity ) { if ( entity != null ) { // TODO use reflection to find the kind? if ( entity instanceof KubernetesList ) { return "List" ; } else { return entity . getClass ( ) . getSimpleName ( ) ; } } else { return null ; } }
Returns the kind of the entity