forked from phoenix/litellm-mirror
fix job
This commit is contained in:
parent
78d7e87490
commit
c1dd8f2c93
2 changed files with 15 additions and 6 deletions
|
@ -13,15 +13,15 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: prisma-migrations
|
- name: prisma-migrations
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "ghcr.io/berriai/litellm:main-stable"
|
||||||
command: ["python", "/path/to/prisma_migration.py"]
|
command: ["python", "/litellm/proxy/prisma_migration.py"]
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Values.secrets.databaseSecret }}
|
name: {{ .Values.db.secret.name }}
|
||||||
key: database_url
|
key: url
|
||||||
- name: DISABLE_SCHEMA_UPDATE
|
- name: DISABLE_SCHEMA_UPDATE
|
||||||
value: "False" # Toggle this for environments like review labs
|
value: "{{ .Values.migrationJob.disableSchemaUpdate }}"
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
backoffLimit: 3
|
backoffLimit: {{ .Values.migrationJob.backoffLimit }}
|
||||||
|
|
|
@ -179,3 +179,12 @@ postgresql:
|
||||||
redis:
|
redis:
|
||||||
enabled: false
|
enabled: false
|
||||||
architecture: standalone
|
architecture: standalone
|
||||||
|
|
||||||
|
# Prisma migration job settings
|
||||||
|
migrationJob:
|
||||||
|
enabled: true # Enable or disable the schema migration Job
|
||||||
|
retries: 3 # Number of retries for the Job in case of failure
|
||||||
|
backoffLimit: 4 # Backoff limit for Job restarts
|
||||||
|
disableSchemaUpdate: false # Skip schema migrations for specific environments. When True, the job will exit with code 0.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue