From d129b848febee170af9793f6f3eb4cd8d38da28e Mon Sep 17 00:00:00 2001 From: Mikio Stewart Date: Wed, 21 Aug 2024 08:30:55 -0700 Subject: [PATCH 1/2] add checksum annotation --- deploy/charts/litellm-helm/templates/deployment.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/charts/litellm-helm/templates/deployment.yaml b/deploy/charts/litellm-helm/templates/deployment.yaml index 07e617581ed..5caeb125842 100644 --- a/deploy/charts/litellm-helm/templates/deployment.yaml +++ b/deploy/charts/litellm-helm/templates/deployment.yaml @@ -13,10 +13,11 @@ spec: {{- include "litellm.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/config-litellm.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} labels: {{- include "litellm.labels" . | nindent 8 }} {{- with .Values.podLabels }} From 9d0103e224712d068d1329eb4c525d85f1cc8805 Mon Sep 17 00:00:00 2001 From: Mikio Stewart Date: Wed, 21 Aug 2024 08:37:21 -0700 Subject: [PATCH 2/2] fix configmap name in print --- deploy/charts/litellm-helm/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/charts/litellm-helm/templates/deployment.yaml b/deploy/charts/litellm-helm/templates/deployment.yaml index 5caeb125842..ab41e6cb53f 100644 --- a/deploy/charts/litellm-helm/templates/deployment.yaml +++ b/deploy/charts/litellm-helm/templates/deployment.yaml @@ -14,7 +14,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print $.Template.BasePath "/config-litellm.yaml") . | sha256sum }} + checksum/config: {{ include (print $.Template.BasePath "/configmap-litellm.yaml") . | sha256sum }} {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }}