Skip to content

Commit

Permalink
fix: improve configuration handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Jun 25, 2024
1 parent 020bc76 commit 0a44017
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 30 deletions.
14 changes: 6 additions & 8 deletions charts/mint/templates/ensemble-manager-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ data:
{{- with .Values.components.ensemble_manager }}
{{- if .enabled }}
# if execution engine is enabled and type is localex
{{- if eq .executionEngine.type "localex" }}
"execution_engine": "localex",
"localex": {
"codedir":"/home/node/app/data/code",
"datadir":"/home/node/app/data/data",
"tempdir":"/home/node/app/data/temp",
"logdir":"/home/node/app/data/logs",
"dataurl": {{ .environment.data_url | quote }},
"parallelism": {{ .environment.parallel }}
"{{ .executionEngine.type }}": {
{{- range $key, $value := .Values }}
{{ $key }}: {{ $value | toYaml | nindent 2 }}
{{- end }}
},
{{- end }}
{{- end }}
Expand Down
52 changes: 30 additions & 22 deletions charts/mint/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ components:
pullPolicy: IfNotPresent
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: cromo.mint.local
Expand All @@ -35,7 +35,7 @@ components:
airflow_url: https://airflow.mint.isi.edu/api/v1
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: mic.mint.local
Expand All @@ -51,7 +51,7 @@ components:
pullPolicy: IfNotPresent
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: api.mic.mint.local
Expand All @@ -66,12 +66,12 @@ components:
pullPolicy: IfNotPresent
persistence:
enabled: true
storageClass: ''
storageClass: ""
accessModes:
- ReadWriteOnce
size: 10Gi
dataSource: {}
existingClaim: ''
existingClaim: ""
selector: {}
annotations:
helm.sh/resource-policy: keep
Expand All @@ -83,7 +83,7 @@ components:
pullPolicy: IfNotPresent
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: datacatalog.mint.local
Expand All @@ -98,12 +98,12 @@ components:
pullPolicy: IfNotPresent
persistence:
enabled: true
storageClass: ''
storageClass: ""
accessModes:
- ReadWriteOnce
size: 10Gi
dataSource: {}
existingClaim: ''
existingClaim: ""
selector: {}
annotations:
helm.sh/resource-policy: keep
Expand All @@ -120,7 +120,7 @@ components:
backup_file: /fuseki-base/seeds/model-catalog.trig
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: endpoint.models.mint.local
Expand All @@ -130,12 +130,12 @@ components:
tls: []
persistence:
enabled: true
storageClass: ''
storageClass: ""
accessModes:
- ReadWriteOnce
size: 10Gi
dataSource: {}
existingClaim: ''
existingClaim: ""
selector: {}
annotations:
helm.sh/resource-policy: keep
Expand Down Expand Up @@ -170,12 +170,12 @@ components:
pullPolicy: IfNotPresent
persistence:
enabled: true
storageClass: ''
storageClass: ""
accessModes:
- ReadWriteOnce
size: 10Gi
dataSource: {}
existingClaim: ''
existingClaim: ""
selector: {}
annotations:
helm.sh/resource-policy: keep
Expand All @@ -187,7 +187,7 @@ components:
pullPolicy: IfNotPresent
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: models.mint.local
Expand All @@ -207,9 +207,9 @@ components:
queries_dir: queries/
ingress:
enabled: true
className: ''
className: ""
annotations:
nginx.ingress.kubernetes.io/enable-cors: 'true'
nginx.ingress.kubernetes.io/enable-cors: "true"
hosts:
- host: api.models.mint.local
paths:
Expand All @@ -224,7 +224,7 @@ components:
pullPolicy: IfNotPresent
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: mint.local
Expand All @@ -237,15 +237,23 @@ components:
api_version: v1
image:
repository: mintproject/ensemble-manager
tag: 1bec795edf26f556c6ac2a7c48a77d831b4a55e4
tag: 5768d915d57b0700f39be603247d9a78c87a8999
pullPolicy: IfNotPresent
environment:
data_dir: /var/mint
data_url: http://localhost:30010/data
parallel: 1
executionEngine:
type: localex
codedir: /home/node/app/data/code
datadir: /home/node/app/data/data
tempdir: /home/node/app/data/temp
logdir: /home/node/app/data/logs
dataurl: http://localhost:30010/data
parallelism: 1
ingress:
enabled: true
className: ''
className: ""
annotations: {}
hosts:
- host: ensemble-manager.mint.local
Expand Down Expand Up @@ -290,12 +298,12 @@ auth:
realm: production
ui_client_id: mint-ui
imagePullSecrets: []
nameOverride: ''
fullnameOverride: ''
nameOverride: ""
fullnameOverride: ""
serviceAccount:
create: true
annotations: {}
name: ''
name: ""
podAnnotations: {}
podSecurityContext: {}
securityContext: {}
Expand Down

0 comments on commit 0a44017

Please sign in to comment.