Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
europdx
k8s
cbio-on-demand
API
Commits
4764ff18
Commit
4764ff18
authored
Aug 21, 2019
by
Ľuboslav Pivarč
Browse files
namespace from env
parent
5fcc34b4
Pipeline
#22617
passed with stages
in 19 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cbioondemandK8S/src/main/java/cz/muni/ics/edirex/cbioondemandK8S/service/KubernetesImpl.java
View file @
4764ff18
...
...
@@ -37,14 +37,14 @@ public class KubernetesImpl implements CBioOnDemandService {
private
V1beta1CronJob
cronJob
;
private
IdentifierCRD
identifier
;
@Value
(
"${namespace:cbio-on-demand}"
)
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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment