You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/02/12 10:25:53 UTC

(camel) branch kn created (now 8b75b4da181)

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

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


      at 8b75b4da181 camel-jbang - Automatic include http server when using knative as it needs this.

This branch includes the following new commits:

     new 8b75b4da181 camel-jbang - Automatic include http server when using knative as it needs this.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: camel-jbang - Automatic include http server when using knative as it needs this.

Posted by da...@apache.org.
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 <cl...@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