public JsonObject inspect()

in itests/camel-k-itests-master/src/main/java/org/apache/camel/k/quarkus/master/Application.java [41:49]


    public JsonObject inspect() {
        var rebalancingService = context.hasService(RebalancingCamelClusterService.class);
        var service = (KubernetesClusterService) rebalancingService.getDelegate();

        return Json.createObjectBuilder()
            .add("cluster-service", service != null ? rebalancingService.getClass().getName() : "")
            .add("cluster-service-res", service != null ? service.getKubernetesResourceName() : "")
            .build();
    }