Skip to content

Agent Mesh

charts: roll control plane and console when the shared secret changes

Tomas Tormo362c1220ed33
diff --git a/charts/sam-mesh/templates/console-deployment.yaml b/charts/sam-mesh/templates/console-deployment.yaml
index a7126fb0..a16ef4e9 100644
--- a/charts/sam-mesh/templates/console-deployment.yaml
+++ b/charts/sam-mesh/templates/console-deployment.yaml
@@ -12,6 +12,9 @@ spec:
app: {{ include "sam-mesh.fullname" . }}-console
template:
metadata:
+ annotations:
+ # Secrets land as env vars, which are not live-reloaded; roll the pods on change.
+ checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
labels:
app: {{ include "sam-mesh.fullname" . }}-console
spec:
diff --git a/charts/sam-mesh/templates/control-plane-deployment.yaml b/charts/sam-mesh/templates/control-plane-deployment.yaml
index f8504ec9..622c80e7 100644
--- a/charts/sam-mesh/templates/control-plane-deployment.yaml
+++ b/charts/sam-mesh/templates/control-plane-deployment.yaml
@@ -11,6 +11,9 @@ spec:
app: {{ include "sam-mesh.fullname" . }}-control-plane
template:
metadata:
+ annotations:
+ # Secrets land as env vars, which are not live-reloaded; roll the pods on change.
+ checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
labels:
app: {{ include "sam-mesh.fullname" . }}-control-plane
spec: