forked from phoenix/litellm-mirror
fix migration job
This commit is contained in:
parent
da5da64d27
commit
b5183ce31b
1 changed files with 5 additions and 5 deletions
|
@ -17,14 +17,14 @@ spec:
|
|||
command: ["python", "litellm/proxy/prisma_migration.py"]
|
||||
workingDir: "/app"
|
||||
env:
|
||||
{{- if .Values.db.deployStandalone }}
|
||||
- name: DATABASE_URL
|
||||
value: postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ .Release.Name }}-postgresql/{{ .Values.postgresql.auth.database }}
|
||||
{{- else if .Values.db.useExisting }}
|
||||
{{- if .Values.db.useExisting }}
|
||||
- name: DATABASE_URL
|
||||
value: {{ .Values.db.url | quote }}
|
||||
{{- else }}
|
||||
- name: DATABASE_URL
|
||||
value: postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ .Release.Name }}-postgresql/{{ .Values.postgresql.auth.database }}
|
||||
{{- end }}
|
||||
- name: DISABLE_SCHEMA_UPDATE
|
||||
value: "false" # always run the migration from the Helm PreSync hook, override the value set
|
||||
{{- end }}
|
||||
restartPolicy: OnFailure
|
||||
backoffLimit: {{ .Values.migrationJob.backoffLimit }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue