Skip to content

Commit 7b65809

Browse files
authored
feat: enhance migrations job with additional configurable properties (BerriAI#8636)
1 parent 371f32b commit 7b65809

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Diff for: deploy/charts/litellm-helm/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type: application
1818
# This is the chart version. This version number should be incremented each time you make changes
1919
# to the chart and its templates, including the app version.
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21-
version: 0.4.0
21+
version: 0.4.1
2222

2323
# This is the version number of the application being deployed. This version number should be
2424
# incremented each time you make changes to the application. Versions are not expected to

Diff for: deploy/charts/litellm-helm/templates/migrations-job.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,23 @@ spec:
4848
{{- end }}
4949
- name: DISABLE_SCHEMA_UPDATE
5050
value: "false" # always run the migration from the Helm PreSync hook, override the value set
51+
{{- with .Values.volumeMounts }}
52+
volumeMounts:
53+
{{- toYaml . | nindent 12 }}
54+
{{- end }}
55+
{{- with .Values.volumes }}
56+
volumes:
57+
{{- toYaml . | nindent 8 }}
58+
{{- end }}
5159
restartPolicy: OnFailure
60+
{{- with .Values.affinity }}
61+
affinity:
62+
{{- toYaml . | nindent 8 }}
63+
{{- end }}
64+
{{- with .Values.tolerations }}
65+
tolerations:
66+
{{- toYaml . | nindent 8 }}
67+
{{- end }}
5268
ttlSecondsAfterFinished: {{ .Values.migrationJob.ttlSecondsAfterFinished }}
5369
backoffLimit: {{ .Values.migrationJob.backoffLimit }}
5470
{{- end }}

0 commit comments

Comments
 (0)