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

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

commit 90283eacf69a7716572326143971cd08d7410a48
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Thu Dec 28 10:04:09 2023 -0500

    Set default version for DevMoe Image
---
 .../apache/camel/karavan/installer/resources/KaravanDeployment.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/karavan-web/karavan-installer/src/main/java/org/apache/camel/karavan/installer/resources/KaravanDeployment.java
 
b/karavan-web/karavan-installer/src/main/java/org/apache/camel/karavan/installer/resources/KaravanDeployment.java
index 3cd74235..7119b06d 100644
--- 
a/karavan-web/karavan-installer/src/main/java/org/apache/camel/karavan/installer/resources/KaravanDeployment.java
+++ 
b/karavan-web/karavan-installer/src/main/java/org/apache/camel/karavan/installer/resources/KaravanDeployment.java
@@ -38,6 +38,10 @@ public class KaravanDeployment {
         String image = baseImage + ":" + config.getVersion();
         List<EnvVar> envVarList = new ArrayList<>();
 
+        String devModeImage = config.getDevmodeImage().contains(":")
+                ? config.getDevmodeImage()
+                : config.getDevmodeImage() + ":" + config.getVersion();
+
         envVarList.add(
                 new EnvVar("KARAVAN_ENVIRONMENT", config.getEnvironment(), 
null)
         );
@@ -51,7 +55,7 @@ public class KaravanDeployment {
                 new EnvVar("KARAVAN_CAMEL_STATUS_INTERVAL", "3s", null)
         );
         envVarList.add(
-                new EnvVar("KARAVAN_DEVMODE_IMAGE", config.getDevmodeImage(), 
null)
+                new EnvVar("KARAVAN_DEVMODE_IMAGE", devModeImage, null)
         );
         envVarList.add(
                 new EnvVar("INFINISPAN_HOSTS", "infinispan." + 
config.getNamespace() + ":11222", null)

Reply via email to