forked from phoenix/litellm-mirror
use existing spec for migrations job
This commit is contained in:
parent
aa82a88c5f
commit
4dc23cf997
1 changed files with 5 additions and 4 deletions
|
@ -17,11 +17,12 @@ spec:
|
||||||
command: ["python", "litellm/proxy/prisma_migration.py"]
|
command: ["python", "litellm/proxy/prisma_migration.py"]
|
||||||
workingDir: "/app"
|
workingDir: "/app"
|
||||||
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: db-secret
|
- name: DATABASE_URL
|
||||||
key: DATABASE_URL
|
value: {{ .Values.db.url | quote }}
|
||||||
- name: DISABLE_SCHEMA_UPDATE
|
- name: DISABLE_SCHEMA_UPDATE
|
||||||
value: "false" # always run the migration from the Helm PreSync hook, override the value set
|
value: "false" # always run the migration from the Helm PreSync hook, override the value set
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue