You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "tdiesler (via GitHub)" <gi...@apache.org> on 2024/09/06 12:01:10 UTC

[PR] [CAMEL-21063] Provide a heath endpoint for exported cloud projects [camel]

tdiesler opened a new pull request, #15468:
URL: https://github.com/apache/camel/pull/15468

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CAMEL-21063] Provide health endpoint for k8s export main [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #15468:
URL: https://github.com/apache/camel/pull/15468#discussion_r1751441218


##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesExport.java:
##########
@@ -289,7 +289,15 @@ public Integer export() throws Exception {
             buildProperties.add("%s.kubernetes.image-pull-policy=%s".formatted(propPrefix, imagePullPolicy));
         }
 
-        // Quarkus Runtime specific
+        // Runtime specific for Main
+        if (runtime == RuntimeType.main) {
+            addDependencies("org.apache.camel:camel-health",
+                    "org.apache.camel:camel-platform-http-main",
+                    "org.apache.camel:camel-rest",
+                    "org.apache.camel:camel-rest-openapi");

Review Comment:
   why is rest-openapi being added ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CAMEL-21063] Provide health endpoint for k8s export main [camel]

Posted by "tdiesler (via GitHub)" <gi...@apache.org>.
tdiesler commented on code in PR #15468:
URL: https://github.com/apache/camel/pull/15468#discussion_r1751465439


##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesExport.java:
##########
@@ -289,7 +289,15 @@ public Integer export() throws Exception {
             buildProperties.add("%s.kubernetes.image-pull-policy=%s".formatted(propPrefix, imagePullPolicy));
         }
 
-        // Quarkus Runtime specific
+        // Runtime specific for Main
+        if (runtime == RuntimeType.main) {
+            addDependencies("org.apache.camel:camel-health",
+                    "org.apache.camel:camel-platform-http-main",
+                    "org.apache.camel:camel-rest",
+                    "org.apache.camel:camel-rest-openapi");

Review Comment:
   These are the components that were added before the health endpoint disappeared. Let me see if it works without rest as well ...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CAMEL-21063] Provide health endpoint for k8s export main [camel]

Posted by "tdiesler (via GitHub)" <gi...@apache.org>.
tdiesler commented on code in PR #15468:
URL: https://github.com/apache/camel/pull/15468#discussion_r1751526797


##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesExport.java:
##########
@@ -289,7 +289,15 @@ public Integer export() throws Exception {
             buildProperties.add("%s.kubernetes.image-pull-policy=%s".formatted(propPrefix, imagePullPolicy));
         }
 
-        // Quarkus Runtime specific
+        // Runtime specific for Main
+        if (runtime == RuntimeType.main) {
+            addDependencies("org.apache.camel:camel-health",
+                    "org.apache.camel:camel-platform-http-main",
+                    "org.apache.camel:camel-rest",
+                    "org.apache.camel:camel-rest-openapi");

Review Comment:
   ... yes, we can remove those.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CAMEL-21063] Provide health endpoint for k8s export main [camel]

Posted by "orpiske (via GitHub)" <gi...@apache.org>.
orpiske commented on code in PR #15468:
URL: https://github.com/apache/camel/pull/15468#discussion_r1749842287


##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesExport.java:
##########
@@ -289,7 +289,18 @@ public Integer export() throws Exception {
             buildProperties.add("%s.kubernetes.image-pull-policy=%s".formatted(propPrefix, imagePullPolicy));
         }
 
-        // Quarkus Runtime specific
+        // Runtime specific for Main
+        if (runtime == RuntimeType.main) {
+            addDependencies("org.apache.camel:camel-health",
+                    "org.apache.camel:camel-platform-http-main",
+                    "org.apache.camel:camel-rest",
+                    "org.apache.camel:camel-rest-openapi");
+
+            //            buildProperties.add("camel.server.enabled=true");
+            //            buildProperties.add("camel.server.health-check-enabled=true");

Review Comment:
   Please, don't keep commented out code on the code base.



##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/test/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesExportTest.java:
##########
@@ -77,9 +77,9 @@ public void setup() {
 
     private static Stream<Arguments> runtimeProvider() {
         return Stream.of(
-                Arguments.of(RuntimeType.quarkus),
-                Arguments.of(RuntimeType.springBoot),
                 Arguments.of(RuntimeType.main));
+        //                Arguments.of(RuntimeType.springBoot),
+        //                Arguments.of(RuntimeType.quarkus));

Review Comment:
   Same note here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CAMEL-21063] Provide health endpoint for k8s export main [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #15468:
URL: https://github.com/apache/camel/pull/15468


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CAMEL-21063] Provide health endpoint for k8s export main [camel]

Posted by "tdiesler (via GitHub)" <gi...@apache.org>.
tdiesler commented on code in PR #15468:
URL: https://github.com/apache/camel/pull/15468#discussion_r1751465439


##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesExport.java:
##########
@@ -289,7 +289,15 @@ public Integer export() throws Exception {
             buildProperties.add("%s.kubernetes.image-pull-policy=%s".formatted(propPrefix, imagePullPolicy));
         }
 
-        // Quarkus Runtime specific
+        // Runtime specific for Main
+        if (runtime == RuntimeType.main) {
+            addDependencies("org.apache.camel:camel-health",
+                    "org.apache.camel:camel-platform-http-main",
+                    "org.apache.camel:camel-rest",
+                    "org.apache.camel:camel-rest-openapi");

Review Comment:
   These are the components that were present before the health endpoint disappeared. Let me see if it works without rest as well ...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org