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

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


The following commit(s) were added to refs/heads/main by this push:
     new 417eae3390c camel-jbang - Upgrade to camel-k 2.2.0 apis (#13035)
417eae3390c is described below

commit 417eae3390cb0511c8a1dfd088f82374d5fbd803
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Feb 8 09:23:11 2024 +0100

    camel-jbang - Upgrade to camel-k 2.2.0 apis (#13035)
---
 .../jbang/core/commands/k/IntegrationRunTest.java  | 22 +++++++++++++++++++---
 parent/pom.xml                                     |  2 +-
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-plugin-k/src/test/java/org/apache/camel/dsl/jbang/core/commands/k/IntegrationRunTest.java
 
b/dsl/camel-jbang/camel-jbang-plugin-k/src/test/java/org/apache/camel/dsl/jbang/core/commands/k/IntegrationRunTest.java
index eee78037342..aaf3e182098 100644
--- 
a/dsl/camel-jbang/camel-jbang-plugin-k/src/test/java/org/apache/camel/dsl/jbang/core/commands/k/IntegrationRunTest.java
+++ 
b/dsl/camel-jbang/camel-jbang-plugin-k/src/test/java/org/apache/camel/dsl/jbang/core/commands/k/IntegrationRunTest.java
@@ -88,6 +88,10 @@ class IntegrationRunTest extends KubeBaseTest {
                   traits:
                     container:
                       imagePullPolicy: ALWAYS
+                      name: integration
+                      port: 8080
+                      servicePort: 80
+                      servicePortName: http
                     logging:
                       level: DEBUG""", printer.getOutput());
     }
@@ -158,6 +162,7 @@ class IntegrationRunTest extends KubeBaseTest {
                         - to: log:info
                   traits:
                     mount:
+                      hotReload: false
                       volumes:
                       - /foo
                       - /bar""", printer.getOutput());
@@ -220,6 +225,8 @@ class IntegrationRunTest extends KubeBaseTest {
                         - to: log:info
                   traits:
                     environment:
+                      containerMeta: true
+                      httpProxy: true
                       vars:
                       - CAMEL_FOO=bar""", printer.getOutput());
     }
@@ -280,8 +287,11 @@ class IntegrationRunTest extends KubeBaseTest {
                         - to: log:info
                   traits:
                     builder:
+                      incrementalImageBuild: true
+                      orderStrategy: SEQUENTIAL
                       properties:
-                      - camel.foo=bar""", printer.getOutput());
+                      - camel.foo=bar
+                      strategy: ROUTINE""", printer.getOutput());
     }
 
     @Test
@@ -437,7 +447,8 @@ class IntegrationRunTest extends KubeBaseTest {
                     mount:
                       configs:
                       - secret:foo
-                      - configmap:bar""", printer.getOutput());
+                      - configmap:bar
+                      hotReload: false""", printer.getOutput());
     }
 
     @Test
@@ -466,6 +477,7 @@ class IntegrationRunTest extends KubeBaseTest {
                         - to: log:info
                   traits:
                     mount:
+                      hotReload: false
                       resources:
                       - configmap:foo/file.txt""", printer.getOutput());
     }
@@ -518,7 +530,11 @@ class IntegrationRunTest extends KubeBaseTest {
                 spec:
                   traits:
                     container:
-                      image: quay.io/camel/demo-app:1.0""", 
printer.getOutput());
+                      image: quay.io/camel/demo-app:1.0
+                      name: integration
+                      port: 8080
+                      servicePort: 80
+                      servicePortName: http""", printer.getOutput());
     }
 
     @Test
diff --git a/parent/pom.xml b/parent/pom.xml
index c1ff99f3835..1a098a731fd 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -83,7 +83,7 @@
         <californium-version>2.8.0</californium-version>
         <californium-scandium-version>2.8.0</californium-scandium-version>
         <camunda-version>7.20.0</camunda-version>
-        <camel-k-version>2.1.0</camel-k-version>
+        <camel-k-version>2.2.0</camel-k-version>
         <cassandra-driver-version>4.17.0</cassandra-driver-version>
         <jta-api-1.2-version>1.2</jta-api-1.2-version>
         <cglib-version>3.3.0</cglib-version>

Reply via email to