apache / camel-k

Apache Camel K is a lightweight integration platform, born on Kubernetes, with serverless superpowers
https://camel.apache.org/camel-k
Apache License 2.0
863 stars 344 forks source link

Service/KService not created for vertx-websocket consumers #5628

Closed lsergio closed 3 months ago

lsergio commented 3 months ago

What happened?

I created an Integration with the following manifest:

apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  name: vertx-server
spec:
  sources:
  - name: main.groovy
    content: |-
      from("vertx-websocket:/my-websocket-path")
        .setBody().constant("Hello World");  

using the example provided at https://camel.apache.org/camel-quarkus/3.8.x/reference/extensions/vertx-websocket.html to expose a websocket endpoint.

When I apply the integration file, the pod is created and I can port-forward to it on port 8080. However, no service or knative-service is created. I can see only a deployment.

Enabling either the service or knative-service trait didn't help either.

Is this expected to work out of the box?

Steps to reproduce

No response

Relevant log output

No response

Camel K version

2.2.0

squakez commented 3 months ago

Hello. ATM the Knative service trait is only able to discover http and rest endpoints. If you think this would be a useful feature we may try to understand how to include that information in the catalog, and let other components to be used for KnativeService as well. I am closing this as this is not really a bug. Waiting the creation of the relative feature if it is something to take in consideration.