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

fixed sed

parent 492192b1
Pipeline #21111 failed with stages
in 1 minute and 6 seconds
......@@ -29,8 +29,8 @@ API Kube deploy:
variables:
NAMESPACE: cbio-on-demand
script:
- sed -i "s/__IMAGE__/${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME} ./k8s/deployment.yml"
- sed -i "s/__NAMESPACE__/${NAMESPACE}" ./k8s/deployment.yml ./k8s/identifier.yml./k8s/service.yml
- sed -i "s/__IMAGE__/${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}/"./k8s/deployment.yml
- sed -i "s/__NAMESPACE__/${NAMESPACE}/" ./k8s/deployment.yml ./k8s/identifier.yml ./k8s/service.yml
- kubectl get pods -n cbio-on-demand
- kubectl apply -f ./k8s
- kubectl rollout status -f ./k8s/deployment.yml
......
......@@ -11,6 +11,7 @@ import io.kubernetes.client.models.V1Pod;
import io.kubernetes.client.models.V1ReplicaSet;
import io.kubernetes.client.models.V1Service;
import io.kubernetes.client.models.V1beta1CronJob;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.io.IOException;
......@@ -36,6 +37,7 @@ public class KubernetesImpl implements CBioOnDemandService {
private V1beta1CronJob cronJob;
private IdentifierCRD identifier;
@Value(value = "${edirex.ics.muni.cz.cbio-on-demand.api:cbio-on-demand}")
private final String NAMESPACE = "cbio-on-demand";
private final String APP_LABELS = "app=cbio, type=ondemand";
private final String DB_LABELS = "app=cbioDB, type=ondemand";
......
......@@ -2,6 +2,6 @@ apiVersion: example.com/v1beta1
kind: identifier
metadata:
generateName: cod
namespace: cbio-on-demand
#namespace: cbio-on-demand
# annotations:
# maintainer: Luboslav Pivarc <456130@muni.cz>
......@@ -5,3 +5,4 @@ management.endpoint.loggers.enabled=true
#proxy.api.url=http://localhost:8081/
#edirex.ics.muni.cz.cbio-on-demand.api=cbio-on-demand
\ No newline at end of file
......@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: ReplicaSet
metadata:
generateName: cbio-on-demand
namespace: cbio-on-demand
#namespace: cbio-on-demand
labels:
app: cbio
type: ondemand
......
......@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
generateName: cbio-on-demand
namespace: cbio-on-demand
#namespace: cbio-on-demand
labels:
app: cbio
type: ondemand
......
......@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: ReplicaSet
metadata:
generateName: cbiodb
namespace: cbio-on-demand
#namespace: cbio-on-demand
annotations:
maintainer: Luboslav Pivarc <456130@muni.cz>
labels:
......
......@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
generateName: cbio-on-demand-db
namespace: cbio-on-demand
#namespace: cbio-on-demand
labels:
app: cbioDB
type: ondemand
......
......@@ -2,7 +2,7 @@ apiVersion: batch/v1beta1
kind: CronJob
metadata:
generateName: cbio-delete
namespace: cbio-on-demand
#namespace: cbio-on-demand
labels:
app: cbio
type: ondemand
......
Markdown is supported
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