Skip to content
Snippets Groups Projects
Commit 2d17d8a3 authored by Michail Alexakis's avatar Michail Alexakis
Browse files

Replace `subPathExpr` with kustomization replacement

parent 9d190ba3
No related branches found
No related tags found
No related merge requests found
......@@ -105,10 +105,10 @@ spec:
mountPath: /.cache
- name: data
mountPath: /streamflow/results
subPathExpr: $(JOB_ID)/output
subPath: JOB_ID/output
- name: data
mountPath: /streamflow/project/input
subPathExpr: $(JOB_ID)/input
subPath: JOB_ID/input
readOnly: true
resources:
limits:
......
......@@ -11,3 +11,20 @@ configMapGenerator:
- streamflow.yml
envs:
- env
replacements:
# NOTE this is a workaround for K8s<1.17 that dont support subPathExpr
- source:
kind: ConfigMap
name: streamflow-config
fieldPath: data.JOB_ID
targets:
- select:
kind: Job
name: streamflow
fieldPaths:
- 'spec.template.spec.containers.[name=streamflow].volumeMounts.[name=data].subPath'
options:
index: 0
delimiter: '/'
create: true
......@@ -11,3 +11,21 @@ configMapGenerator:
- streamflow.yml
envs:
- env
replacements:
# NOTE this is a workaround for K8s<1.17 that dont support subPathExpr
- source:
kind: ConfigMap
name: streamflow-config
fieldPath: data.JOB_ID
targets:
- select:
kind: Job
name: streamflow
fieldPaths:
- 'spec.template.spec.containers.[name=streamflow].volumeMounts.[name=data].subPath'
options:
index: 0
delimiter: '/'
create: true
......@@ -11,3 +11,20 @@ configMapGenerator:
- streamflow.yml
envs:
- env
replacements:
# NOTE this is a workaround for K8s<1.17 that dont support subPathExpr
- source:
kind: ConfigMap
name: streamflow-config
fieldPath: data.JOB_ID
targets:
- select:
kind: Job
name: streamflow
fieldPaths:
- 'spec.template.spec.containers.[name=streamflow].volumeMounts.[name=data].subPath'
options:
index: 0
delimiter: '/'
create: true
......@@ -11,3 +11,20 @@ configMapGenerator:
- streamflow.yml
envs:
- env
replacements:
# NOTE this is a workaround for K8s<1.17 that dont support subPathExpr
- source:
kind: ConfigMap
name: streamflow-config
fieldPath: data.JOB_ID
targets:
- select:
kind: Job
name: streamflow
fieldPaths:
- 'spec.template.spec.containers.[name=streamflow].volumeMounts.[name=data].subPath'
options:
index: 0
delimiter: '/'
create: true
......@@ -11,3 +11,21 @@ configMapGenerator:
- streamflow.yml
envs:
- env
replacements:
# NOTE this is a workaround for K8s<1.17 that dont support subPathExpr
- source:
kind: ConfigMap
name: streamflow-config
fieldPath: data.JOB_ID
targets:
- select:
kind: Job
name: streamflow
fieldPaths:
- 'spec.template.spec.containers.[name=streamflow].volumeMounts.[name=data].subPath'
options:
index: 0
delimiter: '/'
create: true
......@@ -11,3 +11,20 @@ configMapGenerator:
- streamflow.yml
envs:
- env
replacements:
# NOTE this is a workaround for K8s<1.17 that dont support subPathExpr
- source:
kind: ConfigMap
name: streamflow-config
fieldPath: data.JOB_ID
targets:
- select:
kind: Job
name: streamflow
fieldPaths:
- 'spec.template.spec.containers.[name=streamflow].volumeMounts.[name=data].subPath'
options:
index: 0
delimiter: '/'
create: true
input_file:
class: File
#location: 'https://data-proxy.ebrains.eu/api/v1/permalinks/06b0b2c8-31cb-4108-b6a7-0d275e118339'
path: 'input/1.mat'
location: 'https://data-proxy.ebrains.eu/api/v1/permalinks/06b0b2c8-31cb-4108-b6a7-0d275e118339'
#path: 'input/1.mat'
channels: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
psd_output_file_name: 'psd.json'
output_file_name: 'output.png'
......@@ -15,3 +15,20 @@ configMapGenerator:
- streamflow.yml
envs:
- env
replacements:
# NOTE this is a workaround for K8s<1.17 that dont support subPathExpr
- source:
kind: ConfigMap
name: streamflow-config
fieldPath: data.JOB_ID
targets:
- select:
kind: Job
name: streamflow
fieldPaths:
- 'spec.template.spec.containers.[name=streamflow].volumeMounts.[name=data].subPath'
options:
index: 0
delimiter: '/'
create: true
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