From 0eae217705a1efd39f9dd09e4141a1d3e29ff9da Mon Sep 17 00:00:00 2001 From: Avanish Yadav Date: Wed, 25 Feb 2026 01:17:42 +0530 Subject: [PATCH] feat: add checksum for config in dataservice and gateway deployments - Introduced checksum/config annotation in both dataservice and gateway deployment templates to ensure proper configuration updates and cache invalidation. --- charts/portkey-gateway/templates/dataservice/deployment.yaml | 1 + charts/portkey-gateway/templates/gateway/deployment.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/charts/portkey-gateway/templates/dataservice/deployment.yaml b/charts/portkey-gateway/templates/dataservice/deployment.yaml index ba588e6..af8125a 100644 --- a/charts/portkey-gateway/templates/dataservice/deployment.yaml +++ b/charts/portkey-gateway/templates/dataservice/deployment.yaml @@ -29,6 +29,7 @@ spec: {{- if .Values.dataservice.deployment.autoRestart }} rollme: {{ randAlphaNum 5 | quote }} {{- end }} + checksum/config: {{ include (print $.Template.BasePath "/gateway/config.yaml") . | sha256sum }} {{- if .Values.useVaultInjection }} {{- include "portkeyenterprise.vaultAnnotations" . | nindent 8 }} {{- end }} diff --git a/charts/portkey-gateway/templates/gateway/deployment.yaml b/charts/portkey-gateway/templates/gateway/deployment.yaml index 1a7582f..bba6eff 100644 --- a/charts/portkey-gateway/templates/gateway/deployment.yaml +++ b/charts/portkey-gateway/templates/gateway/deployment.yaml @@ -31,6 +31,7 @@ spec: {{- if .Values.autoRestart }} rollme: {{ randAlphaNum 5 | quote }} {{- end }} + checksum/config: {{ include (print $.Template.BasePath "/gateway/config.yaml") . | sha256sum }} {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }}