Skip to content
Snippets Groups Projects
Commit d3334dd3 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

Revert "add init container"

This reverts commit e1bff1a6
parent e1bff1a6
No related branches found
No related tags found
1 merge request!3Revert "add init container"
......@@ -212,7 +212,6 @@ public class KubernetesImpl implements CBioOnDemandService {
V1ReplicaSet replicaSet = Utils.deepCopy(cbioReplicaSet, V1ReplicaSet.class);
addLabelsAndSelectors(replicaSet, userID, id);
addDbHost(replicaSet, Host);
addDbHostToInit(replicaSet, Host);
addMoveAndID(replicaSet, move, samplesId);
addUrl(replicaSet, url);
V1ReplicaSet result = api.createReplicaSet(replicaSet, NAMESPACE);
......@@ -281,15 +280,6 @@ public class KubernetesImpl implements CBioOnDemandService {
.setValue(Host);
}
private void addDbHostToInit(V1ReplicaSet replicaSet, String Host){
replicaSet.getSpec()
.getTemplate()
.getSpec()
.getInitContainers().get(0)
.getEnv().get(0)
.setValue(Host);
}
private void addUrl(V1ReplicaSet replicaSet, String url) {
replicaSet.getSpec()
.getTemplate()
......
......@@ -28,13 +28,6 @@ spec:
# generated by API unique for user
#instance: "1"
spec:
initContainers:
- name: waitForDb
image: lpivo/wait_for_db
env:
- name: DBHOST
# generated by API from service name
value: cbio-on-demand-dbpjvrw
imagePullSecrets:
- name: dataloding
containers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment