Skip to content

Commit

Permalink
Set default version for DevMoe Image
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Dec 28, 2023
1 parent 2a34bdf commit 90283ea
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public static Deployment getDeployment(KaravanCommand config) {
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)
);
Expand All @@ -51,7 +55,7 @@ public static Deployment getDeployment(KaravanCommand config) {
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)
Expand Down

0 comments on commit 90283ea

Please sign in to comment.