mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
feat(helm): add securityContext and pull policy values to migration job (#7652)
* fix(helm): corrected indentation in migration-job.yaml * feat(helm): add securityContext and pull policy values to migration job
This commit is contained in:
parent
8c26e1a66d
commit
801f450e8c
1 changed files with 51 additions and 48 deletions
|
@ -1,14 +1,14 @@
|
||||||
{{- if .Values.migrationJob.enabled }}
|
{{- if .Values.migrationJob.enabled }}
|
||||||
# This job runs the prisma migrations for the LiteLLM DB.
|
# This job runs the prisma migrations for the LiteLLM DB.
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "litellm.fullname" . }}-migrations
|
name: {{ include "litellm.fullname" . }}-migrations
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/hook: PreSync
|
argocd.argoproj.io/hook: PreSync
|
||||||
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation # delete old migration on a new deploy in case the migration needs to make updates
|
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation # delete old migration on a new deploy in case the migration needs to make updates
|
||||||
checksum/config: {{ toYaml .Values | sha256sum }}
|
checksum/config: {{ toYaml .Values | sha256sum }}
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -19,6 +19,9 @@
|
||||||
containers:
|
containers:
|
||||||
- name: prisma-migrations
|
- name: prisma-migrations
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "main-%s" .Chart.AppVersion) }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "main-%s" .Chart.AppVersion) }}"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
command: ["python", "litellm/proxy/prisma_migration.py"]
|
command: ["python", "litellm/proxy/prisma_migration.py"]
|
||||||
workingDir: "/app"
|
workingDir: "/app"
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue