Skip to content

Commit 9cfd7c7

Browse files
authored
Prevent istio injection for db migrations cron job (#7513)
* allow option to prevent istio injection * make annotations more generic * make annotations empty * revert comment deletions
1 parent f7931b6 commit 9cfd7c7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deploy/charts/litellm-helm/templates/migrations-job.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ metadata:
1010
checksum/config: {{ toYaml .Values | sha256sum }}
1111
spec:
1212
template:
13+
metadata:
14+
annotations:
15+
{{- with .Values.migrationJob.annotations }}
16+
{{- toYaml . | nindent 8 }}
17+
{{- end }}
1318
spec:
1419
containers:
1520
- name: prisma-migrations

deploy/charts/litellm-helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,6 @@ migrationJob:
186186
retries: 3 # Number of retries for the Job in case of failure
187187
backoffLimit: 4 # Backoff limit for Job restarts
188188
disableSchemaUpdate: false # Skip schema migrations for specific environments. When True, the job will exit with code 0.
189+
annotations: {}
189190

190191

0 commit comments

Comments
 (0)