diff --git a/cli/src/main/java/org/wildfly/glow/cli/commands/OpenShiftSupport.java b/cli/src/main/java/org/wildfly/glow/cli/commands/OpenShiftSupport.java index a461d52a..85a3e166 100644 --- a/cli/src/main/java/org/wildfly/glow/cli/commands/OpenShiftSupport.java +++ b/cli/src/main/java/org/wildfly/glow/cli/commands/OpenShiftSupport.java @@ -175,7 +175,7 @@ private static void createAppDeployment(GlowMessageWriter writer, Path target, O } static void deploy(GlowMessageWriter writer, Path target, String appName, Map env, Set layers, Set addOns, boolean ha, - Map extraEnv, Set disabledDeployers) throws Exception { + Map extraEnv, Set disabledDeployers, Path initScript) throws Exception { Map actualEnv = new TreeMap<>(); OpenShiftClient osClient = new KubernetesClientBuilder().build().adapt(OpenShiftClient.class); writer.info("\nConnected to OpenShift cluster"); @@ -232,7 +232,7 @@ static void deploy(GlowMessageWriter writer, Path target, String appName, Map envMap = new HashMap<>(); for(Set envs : scanResults.getSuggestions().getStronglySuggestedConfigurations().values()) { for(Env env : envs) { @@ -351,7 +348,7 @@ public Integer call() throws Exception { } } OpenShiftSupport.deploy(GlowMessageWriter.DEFAULT, target, name == null ? "app-from-wildfly-glow" : name.toLowerCase(), envMap, scanResults.getDiscoveredLayers(), - scanResults.getEnabledAddOns(), haProfile.orElse(false), extraEnv, disableDeployers); + scanResults.getEnabledAddOns(), haProfile.orElse(false), extraEnv, disableDeployers, initScriptFile.orElse(null)); print("@|bold Openshift build and deploy DONE.|@"); } if (content.getDockerImageName() != null) {