This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch kn
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8b75b4da181f0cebf0d222e43998dd895417bd5e
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Feb 12 11:25:44 2024 +0100

    camel-jbang - Automatic include http server when using knative as it needs 
this.
---
 .../camel/main/download/DependencyDownloaderComponentResolver.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java
 
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java
index 5e872cf6595..2a02fa2fabb 100644
--- 
a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java
+++ 
b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/DependencyDownloaderComponentResolver.java
@@ -75,8 +75,9 @@ public final class DependencyDownloaderComponentResolver 
extends DefaultComponen
             sc.setShadow(true);
             sc.setShadowPattern(stubPattern);
         }
-        if (answer instanceof PlatformHttpComponent) {
+        if (answer instanceof PlatformHttpComponent || "knative".equals(name)) 
{
             // setup a default http server on port 8080 if not already done
+            // knative also requires a http server
             MainHttpServer server = 
camelContext.hasService(MainHttpServer.class);
             if (server == null) {
                 // need to capture we use http-server

Reply via email to