From 5ce35817a11fa136aba067b299a815b44ab12b84 Mon Sep 17 00:00:00 2001 From: Unchained Date: Sat, 7 Mar 2026 10:57:58 +0200 Subject: [PATCH] feat: add git revision annotation to force pod restart on updates --- k8s/deployment-nodejs.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8s/deployment-nodejs.yaml b/k8s/deployment-nodejs.yaml index 4af88ca..ba818f6 100644 --- a/k8s/deployment-nodejs.yaml +++ b/k8s/deployment-nodejs.yaml @@ -18,6 +18,10 @@ spec: metadata: labels: app: storefront + annotations: + # Flux will substitute this with the actual git revision + # Changing this annotation forces pod restart on git updates + gitRevision: ${GIT_REVISION:-unknown} spec: initContainers: - name: clone