File tree Expand file tree Collapse file tree 7 files changed +19
-6
lines changed Expand file tree Collapse file tree 7 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,5 @@ annotations:
31
31
dependencies :
32
32
- name : reloader
33
33
version : 1.0.63
34
- repository : https://stakater.github.io/stakater-charts
34
+ repository : https://stakater.github.io/stakater-charts
35
+ condition : ui.enabled
Original file line number Diff line number Diff line change
1
+ {{- if .Values.ui.enabled -}}
1
2
apiVersion : v1
2
3
kind : ConfigMap
3
4
metadata :
8
9
{{ (.Files.Glob "web-app/*").AsConfig | nindent 2 }}
9
10
settings.yml : |
10
11
{{- .Values.ui.appSettings | toYaml | nindent 4 }}
12
+ {{- end -}}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.ui.enabled -}}
1
2
apiVersion : apps/v1
2
3
kind : Deployment
3
4
metadata :
@@ -10,7 +11,7 @@ metadata:
10
11
spec :
11
12
replicas : 1
12
13
selector :
13
- matchLabels :
14
+ matchLabels :
14
15
{{- include "azimuth-llm.ui-selectorLabels" . | nindent 6 }}
15
16
strategy :
16
17
{{- .Values.ui.updateStrategy | toYaml | nindent 4 }}
29
30
volumeMounts :
30
31
- name : app
31
32
mountPath : /etc/web-app
32
- command :
33
+ command :
33
34
- python
34
35
args :
35
36
- {{ .Values.ui.entrypoint }}
44
45
volumes :
45
46
- name : app
46
47
configMap :
47
- name : {{ .Release.Name }}-web-app
48
+ name : {{ .Release.Name }}-web-app
49
+ {{- end -}}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.ui.enabled -}}
1
2
apiVersion : v1
2
3
kind : Service
3
4
metadata :
12
13
targetPort : ui
13
14
type : {{ .Values.ui.service.type }}
14
15
selector :
15
- {{- include "azimuth-llm.ui-selectorLabels" . | nindent 4 }}
16
+ {{- include "azimuth-llm.ui-selectorLabels" . | nindent 4 }}
17
+ {{- end -}}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.ui.enabled -}}
1
2
{{- if .Values.ui.service.zenith.enabled -}}
2
3
apiVersion : zenith.stackhpc.com/v1alpha1
3
4
kind : Client
11
12
serviceName : {{ .Values.ui.service.name }}
12
13
auth :
13
14
skip : {{ .Values.ui.service.zenith.skipAuth }}
14
- {{- end -}}
15
+ {{- end -}}
16
+ {{- end -}}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.ui.enabled -}}
1
2
{{- if .Values.ui.service.zenith.enabled -}}
2
3
apiVersion : zenith.stackhpc.com/v1alpha1
3
4
kind : Reservation
@@ -13,4 +14,5 @@ metadata:
13
14
{{- end }}
14
15
spec :
15
16
credentialSecretName : {{ .Release.Name }}-ui-zenith-credential
17
+ {{- end -}}
16
18
{{- end -}}
Original file line number Diff line number Diff line change 64
64
65
65
# Configuration for the frontend web interface
66
66
ui :
67
+ # Toggles installation of the gradio web UI
68
+ enabled : true
67
69
# The file from the UI config map to execute as the entrypoint to the frontend app
68
70
entrypoint : app.py
69
71
# The values to be written to settings.yml for parsing as frontend app setting
You can’t perform that action at this time.
0 commit comments