add checksum annotation

This commit is contained in:
Mikio Stewart 2024-08-21 08:30:55 -07:00
parent 42df6b42c9
commit d129b848fe

View file

@ -13,10 +13,11 @@ spec:
{{- include "litellm.selectorLabels" . | nindent 6 }} {{- include "litellm.selectorLabels" . | nindent 6 }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }}
annotations: annotations:
checksum/config: {{ include (print $.Template.BasePath "/config-litellm.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
labels: labels:
{{- include "litellm.labels" . | nindent 8 }} {{- include "litellm.labels" . | nindent 8 }}
{{- with .Values.podLabels }} {{- with .Values.podLabels }}