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 -}}
22apiVersion : batch/v1
33kind : Job
44metadata :
1515 command :
1616 - python
1717 - gradio-client-test.py
18+ {{- if .Values.ingress.ui.enabled }}
19+ - {{ .Values.ingress.host }}{{ .Values.ingress.ui.path }}
20+ {{- else }}
1821 - http://{{ .Values.ui.service.name }}.{{ .Release.Namespace }}.svc
22+ {{- end }}
1923 restartPolicy : Never
2024 # Allow plenty of retries since downloading
2125 # 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) -}}
22apiVersion : batch/v1
33kind : Job
44metadata :
1515 command :
1616 - nc
1717 - -vz
18+ {{- if .Values.ingress.ui.enabled }}
19+ - {{ .Values.ingress.host | trimPrefix 'http://' | trimPrefix 'https://' }}{{ .Values.ingress.ui.path }}
20+ {{- else }}
1821 - {{ .Values.ui.service.name }}.{{ .Release.Namespace }}.svc
22+ {{- end }}
1923 - " 80"
2024 restartPolicy : Never
2125 backoffLimit : 3
You can’t perform that action at this time.
0 commit comments