Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-9251

[Dev-mode] KSW Discovery - You need to define a KubernetesServiceCatalog implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.40.0.Final
    • None
    • Image
    • False
    • None
    • False
    • Workaround Exists
    • Hide

      Add the kogito-addons-quarkus-fabric8-kubernetes-service-catalog manually.

      Show
      Add the kogito-addons-quarkus-fabric8-kubernetes-service-catalog manually.
    • ---
    • ---
    • 2023 Week 21-23 (from May 22)

      When running the kogito-example timeouts-showcase-extended
      this issue happens: with the service discovery pointing to kogito.service.url=knative:services.v1.serving.knative.dev/timeouts-showcase/timeouts-showcase-extended
      this issue happens:

      2023-05-30 14:44:58,943 WARN  [org.kie.kog.add.qua.kna.eve.KnativeEventingConfigSourceFactory] (main) K_SINK variable is empty or doesn't exist. Please make sure that this service is a Knative Source or has a SinkBinding bound to it.
      2023-05-30 14:44:58,957 ERROR [org.kie.kog.add.qua.k8s.con.KubeDiscoveryConfigCache] (main) Service Discovery has failed on property [kogito.service.url=knative:services.v1.serving.knative.dev/timeouts-showcase/timeouts-showcase-extended]: java.lang.UnsupportedOperationException: You need to define a KubernetesServiceCatalog implementation
              at org.kie.kogito.addons.k8s.resource.catalog.DefaultKubernetesServiceCatalog.getServiceAddress(DefaultKubernetesServiceCatalog.java:25)
              at org.kie.kogito.addons.quarkus.k8s.config.KubeDiscoveryConfigCacheUpdater.update(KubeDiscoveryConfigCacheUpdater.java:35)
              at org.kie.kogito.addons.quarkus.k8s.config.KubeDiscoveryConfigCache.lambda$get$0(KubeDiscoveryConfigCache.java:40)
              at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
              at org.kie.kogito.addons.quarkus.k8s.config.KubeDiscoveryConfigCache.get(KubeDiscoveryConfigCache.java:40)
              at org.kie.kogito.addons.quarkus.k8s.config.ConfigValueExpander.expand(ConfigValueExpander.java:35) 

       

       

              rhn-support-fspolti Filippe Spolti
              rhn-support-fspolti Filippe Spolti
              Tristan Radisson Tristan Radisson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: