forked from phoenix/litellm-mirror
handle standalone DB on helm hook
This commit is contained in:
parent
ccb6c42e86
commit
b4f76556b6
1 changed files with 6 additions and 4 deletions
|
@ -15,11 +15,13 @@ spec:
|
||||||
image: "ghcr.io/berriai/litellm:main-stable"
|
image: "ghcr.io/berriai/litellm:main-stable"
|
||||||
command: ["python", "/litellm/proxy/prisma_migration.py"]
|
command: ["python", "/litellm/proxy/prisma_migration.py"]
|
||||||
env:
|
env:
|
||||||
|
{{- if .Values.db.deployStandalone }}
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
valueFrom:
|
value: postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ .Release.Name }}-postgresql/{{ .Values.postgresql.auth.database }}
|
||||||
secretKeyRef:
|
{{- else if .Values.db.useExisting }}
|
||||||
name: {{ .Values.db.secret.name }}
|
- name: DATABASE_URL
|
||||||
key: url
|
value: {{ .Values.db.url | quote }}
|
||||||
|
{{- end }}
|
||||||
- name: DISABLE_SCHEMA_UPDATE
|
- name: DISABLE_SCHEMA_UPDATE
|
||||||
value: "{{ .Values.migrationJob.disableSchemaUpdate }}"
|
value: "{{ .Values.migrationJob.disableSchemaUpdate }}"
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue