refactor(integration): Set builder memory to 300m
Ideally this should be configurable as well as the requests/limits of the builder pod.
For our cluster we have 512 MB limit so a mx of 500M is too large.
300M should be safe, however, as said, this should be configurable.
*/
package io.syndesis.openshift;
+import java.io.IOException;
+import java.io.StringWriter;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
import io.fabric8.kubernetes.api.model.EnvVar;
import io.fabric8.kubernetes.client.RequestConfig;
import io.fabric8.openshift.api.model.DeploymentConfig;
@@ -24,13 +31,6 @@ import io.fabric8.openshift.client.OpenShiftClient;
import io.syndesis.core.Names;
import io.syndesis.core.SyndesisServerException;
-import java.io.IOException;
-import java.io.StringWriter;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
public class OpenShiftServiceImpl implements OpenShiftService {
private final NamespacedOpenShiftClient openShiftClient;
@@ -215,7 +215,7 @@ public class OpenShiftServiceImpl implements OpenShiftService {
.withNewSourceStrategy()
.withNewFrom().withKind("ImageStreamTag").withName(img.getShortName() + ":" + img.getTag()).endFrom()
.withIncremental(true)
- .withEnv(new EnvVar("MAVEN_OPTS","-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx500m", null))
+ .withEnv(new EnvVar("MAVEN_OPTS","-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx300m", null))
.endSourceStrategy()
.endStrategy()
.withNewOutput().withNewTo().withKind("ImageStreamTag").withName(projectName + ":latest").endTo().endOutput()
