File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
- {{- if .Values.api.enabled -}}
1
+ {{- if and .Values.ui.enabled .Values.api.enabled -}}
2
2
apiVersion : batch/v1
3
3
kind : Job
4
4
metadata :
15
15
command :
16
16
- python
17
17
- gradio-client-test.py
18
+ {{- if .Values.ingress.ui.enabled }}
19
+ - {{ .Values.ingress.host }}{{ .Values.ingress.ui.path }}
20
+ {{- else }}
18
21
- http://{{ .Values.ui.service.name }}.{{ .Release.Namespace }}.svc
22
+ {{- end }}
19
23
restartPolicy : Never
20
24
# Allow plenty of retries since downloading
21
25
# model weights can take a long time.
Original file line number Diff line number Diff line change 1
- {{- if not .Values.api.enabled -}}
1
+ {{- if and .Values.ui.enabled ( not .Values.api.enabled) -}}
2
2
apiVersion : batch/v1
3
3
kind : Job
4
4
metadata :
15
15
command :
16
16
- nc
17
17
- -vz
18
+ {{- if .Values.ingress.ui.enabled }}
19
+ - {{ .Values.ingress.host | trimPrefix 'http://' | trimPrefix 'https://' }}{{ .Values.ingress.ui.path }}
20
+ {{- else }}
18
21
- {{ .Values.ui.service.name }}.{{ .Release.Namespace }}.svc
22
+ {{- end }}
19
23
- " 80"
20
24
restartPolicy : Never
21
25
backoffLimit : 3
You can’t perform that action at this time.
0 commit comments