Skip to content

Commit a74219e

Browse files
authored
add: support tapis (#25)
* improve: execution_engine configuration * fix: support tapis * dump version * fix: linter
1 parent aafdea3 commit a74219e

File tree

4 files changed

+35
-17
lines changed

4 files changed

+35
-17
lines changed

charts/mint/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.3.0
18+
version: 2.3.1
1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to
2121
# follow Semantic Versioning. They should reflect the version the application is using.

charts/mint/templates/ensemble-manager-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ data:
4949
5050
5151
{{- with .Values.components.ensemble_manager }}
52-
{{- if eq .executionEngine.type "localex" }}
52+
{{- if eq .execution_engine.type "localex" }}
5353
"execution_engine": "localex",
54-
"{{ .executionEngine.type }}":
55-
{{ .executionEngine.config | toRawJson | nindent 12}}
54+
"{{ .execution_engine.type }}":
55+
{{ .execution_engine.config | toRawJson | nindent 12}}
5656
{{- end }}
5757
{{- end }}
5858
"auth_server": {{ .Values.auth.url | quote }},

charts/mint/templates/ui-config.yaml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,37 @@ data:
4444
{{ if .enabled }}
4545
window.REACT_APP_ENSEMBLE_MANAGER_API = "http{{ if .ingress.tls }}s{{ end }}://{{ with (first .ingress.hosts ) }}{{ .host }}{{ end }}/{{ .api_version }}";
4646
//Execution - Local
47-
window.REACT_APP_EXECUTION_ENGINE = "tapis";
48-
window.REACT_APP_LOCALEX_CODEDIR = "{{ .environment.data_dir }}/code";
49-
window.REACT_APP_LOCALEX_DATADIR = "{{ .environment.data_dir }}/data";
50-
window.REACT_APP_LOCALEX_TEMPDIR = "{{ .environment.data_dir }}/temp";
51-
window.REACT_APP_LOCALEX_LOGDIR = "{{ .environment.data_dir }}/logs";
52-
window.REACT_APP_LOCALEX_DATAURL = "{{ .environment.data_url }}/data";
53-
window.REACT_APP_LOCALEX_LOGURL = "{{ .environment.data_url }}/logs";
54-
window.REACT_APP_LOCALEX_PARALLEL = "{{ .environment.parallel }}";
47+
window.REACT_APP_EXECUTION_ENGINE = "{{ .execution_engine.type }}";
48+
49+
{{ if eq .execution_engine.type "localex" }}
50+
window.REACT_APP_LOCALEX_CODEDIR = "{{ .execution_engine.config.data_dir }}/code";
51+
window.REACT_APP_LOCALEX_DATADIR = "{{ .execution_engine.config.data_dir }}/data";
52+
window.REACT_APP_LOCALEX_TEMPDIR = "{{ .execution_engine.config.data_dir }}/temp";
53+
window.REACT_APP_LOCALEX_LOGDIR = "{{ .execution_engine.config.data_dir }}/logs";
54+
window.REACT_APP_LOCALEX_DATAURL = "{{ .execution_engine.config.data_url }}/data";
55+
window.REACT_APP_LOCALEX_LOGURL = "{{ .execution_engine.config.data_url }}/logs";
56+
window.REACT_APP_LOCALEX_PARALLEL = "{{ .execution_engine.config.parallel }}";
57+
{{ end }}
58+
59+
{{ if eq .execution_engine.type "tapis" }}
60+
window.REACT_APP_LOCALEX_CODEDIR = "{{ .execution_engine.config.data_dir }}/code";
61+
window.REACT_APP_LOCALEX_DATADIR = "{{ .execution_engine.config.data_dir }}/data";
62+
window.REACT_APP_LOCALEX_TEMPDIR = "{{ .execution_engine.config.data_dir }}/temp";
63+
window.REACT_APP_LOCALEX_LOGDIR = "{{ .execution_engine.config.data_dir }}/logs";
64+
window.REACT_APP_LOCALEX_DATAURL = "{{ .execution_engine.config.data_url }}/data";
65+
window.REACT_APP_LOCALEX_LOGURL = "{{ .execution_engine.config.data_url }}/logs";
66+
window.REACT_APP_LOCALEX_PARALLEL = "{{ .execution_engine.config.parallel }}";
67+
{{ end }}
68+
69+
70+
{{ if eq .execution_engine.type "wings" }}
5571
//Execution - Wings
56-
window.REACT_APP_WINGS_EXPORT_URL = "{{ .environment.wings_export_url }}";
57-
window.REACT_APP_WINGS_STORAGE = "{{ .environment.wings_storage }}";
58-
window.REACT_APP_WINGS_DOTPATH = "{{ .environment.wings_dot_path }}";
59-
window.REACT_APP_WINGS_ONTURL = "{{ .environment.wings_ont_url }}";
72+
window.REACT_APP_WINGS_EXPORT_URL = "{{ .execution_engine.config.wings_export_url }}";
73+
window.REACT_APP_WINGS_STORAGE = "{{ .execution_engine.config.wings_storage }}";
74+
window.REACT_APP_WINGS_DOTPATH = "{{ .execution_engine.config.wings_dot_path }}";
75+
window.REACT_APP_WINGS_ONTURL = "{{ .execution_engine.config.wings_ont_url }}";
76+
{{ end }}
77+
6078
{{ end }}
6179
{{ end }}
6280

charts/mint/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ components:
243243
data_dir: /var/mint
244244
data_url: http://localhost:30010/data
245245
parallel: 1
246-
executionEngine:
246+
execution_engine:
247247
type: localex
248248
config:
249249
codedir: /home/node/app/data/code

0 commit comments

Comments
 (0)