Commit 4764ff18 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

namespace from env

parent 5fcc34b4
Pipeline #22617 passed with stages
in 19 minutes and 21 seconds
......@@ -37,14 +37,14 @@ public class KubernetesImpl implements CBioOnDemandService {
private V1beta1CronJob cronJob;
private IdentifierCRD identifier;
private final String NAMESPACE = "cbio-on-demand";
private final String NAMESPACE;
private final String APP_LABELS = "app=cbio, type=ondemand";
private final String DB_LABELS = "app=cbioDB, type=ondemand";
public KubernetesImpl(KubernetesCalls api, RoutingAAI routing) throws IOException {
public KubernetesImpl(KubernetesCalls api, RoutingAAI routing, @Value("${namespace:cbio-on-demand}")String namespace) throws IOException {
this.api = api;
this.routing = routing;
NAMESPACE = namespace;
cronJob = (V1beta1CronJob) Utils.getConfigurationFromYaml("deletecronjob.yml");
cbioService = (V1Service) Utils.getConfigurationFromYaml("cbio-service.yml");
cbioReplicaSet = (V1ReplicaSet) Utils.getConfigurationFromYaml("cbio-replicaset.yml");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment