Skip to content

Commit

Permalink
fix: small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Sep 4, 2024
1 parent 02c24d1 commit 65aff7c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
17 changes: 10 additions & 7 deletions charts/mint/templates/ui-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ data:
{{ end }}
{{ end }}
{{ if .Values.components.ensemble_manager.enabled }
{{ with .Values.components.ensemble_manager.config.execution_engine }}
{{ if .Values.components.ensemble_manager.enabled }}
{{ with .Values.components.ensemble_manager }}
window.REACT_APP_ENSEMBLE_MANAGER_API = "http{{ if .ingress.tls }}s{{ end }}://{{ with (first .ingress.hosts ) }}{{ .host }}{{ end }}/{{ .api_version }}";
{{ end }}
{{ with .Values.components.ensemble_manager.config.execution_engine }}
window.REACT_APP_EXECUTION_ENGINE = "{{ .type }}";
{{ if eq .config.type "localex" }}
{{ if eq .type "localex" }}
window.REACT_APP_LOCALEX_CODEDIR = "{{ .data_dir }}/code";
window.REACT_APP_LOCALEX_DATADIR = "{{ .data_dir }}/data";
window.REACT_APP_LOCALEX_TEMPDIR = "{{ .data_dir }}/temp";
Expand All @@ -49,16 +51,16 @@ data:
window.REACT_APP_LOCALEX_LOGURL = "{{ .data_url }}/logs";
window.REACT_APP_LOCALEX_PARALLEL = "{{ .parallellelism }}";
{{ end }}
{{ if eq .config.type "tapis" }}
{{ if eq .type "tapis" }}
window.REACT_APP_LOCALEX_CODEDIR = "{{ .data_dir }}/code";
window.REACT_APP_LOCALEX_DATADIR = "{{ .data_dir }}/data";
window.REACT_APP_LOCALEX_TEMPDIR = "{{ .data_dir }}/temp";
window.REACT_APP_LOCALEX_LOGDIR = "{{ .data_dir }}/logs";
window.REACT_APP_LOCALEX_DATAURL = "{{ .data_url }}/data";
window.REACT_APP_LOCALEX_LOGURL = "{{ .data_url }}/logs";
window.REACT_APP_LOCALEX_PARALLEL = "{{ config.parallelism }}";
window.REACT_APP_LOCALEX_PARALLEL = "{{ .parallelism }}";
{{ end }}
{{ if eq .config.type "wings" }}
{{ if eq .type "wings" }}
//Execution - Wings
window.REACT_APP_WINGS_EXPORT_URL = "{{ .wings_export_url }}";
window.REACT_APP_WINGS_STORAGE = "{{ .wings_storage }}";
Expand Down Expand Up @@ -87,5 +89,6 @@ data:
window.REACT_APP_DATA_CATALOG_TYPE = "CKAN";
window.REACT_APP_DATA_CATALOG_KEY = {{ .Values.secrets.data_catalog.ckan.api_key | quote }};
{{ end }}
{{ end }}
{{- end}}
{{- end }}
4 changes: 4 additions & 0 deletions charts/mint/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ components:
annotations:
helm.sh/resource-policy: keep

external:
data_catalog:
url: http://localhost:5000

google:
maps:
key: AIzaSyAkRnERo4F4dy9AhdrWHAN5vdJWs0vZCgM
Expand Down
6 changes: 6 additions & 0 deletions tests/arm-64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
welcome_message: Welcome to MINT Demo
arm_support: true

components:
data_catalog:
enabled: false

0 comments on commit 65aff7c

Please sign in to comment.