Prevent istio injection for db migrations cron job (#7513)
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 40s

* allow option to prevent istio injection

* make annotations more generic

* make annotations empty

* revert comment deletions
This commit is contained in:
Low Jian Sheng 2025-01-05 14:45:19 +08:00 committed by GitHub
parent f7931b659b
commit 9cfd7c790a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,11 @@ metadata:
checksum/config: {{ toYaml .Values | sha256sum }}
spec:
template:
metadata:
annotations:
{{- with .Values.migrationJob.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
- name: prisma-migrations

View file

@ -186,5 +186,6 @@ migrationJob:
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.
annotations: {}