Skip to content

Commit 10566ca

Browse files
authored
Add checksum/config annotation to FlowAggregator (#6967)
When updating the config with Helm, the annotation will be automatically updated and the FlowAggregator Pod will be recreated. This is consistent with the main Helm chart for Antrea. Note that the FlowAggregator can handle some config changes "dynamically" (i.e., without a Pod restart), but not all config updates are supported and we may want to remove that partial support altogether in the future. The annotation can also be updated manually to roll the Deployment (e.g, if Helm is not being used). Signed-off-by: Antonin Bas <[email protected]>
1 parent 909a97a commit 10566ca

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

build/charts/flow-aggregator/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ spec:
1212
app: flow-aggregator
1313
template:
1414
metadata:
15+
annotations:
16+
# Automatically restart Pod if the ConfigMap changes
17+
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
18+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
1519
labels:
1620
app: flow-aggregator
1721
spec:

build/yamls/flow-aggregator.yml

+2
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ spec:
400400
app: flow-aggregator
401401
template:
402402
metadata:
403+
annotations:
404+
checksum/config: 5ba1a6d1b9d3b40e2ea26e37aa2bea38fda2558c20564873936472136651de37
403405
labels:
404406
app: flow-aggregator
405407
spec:

0 commit comments

Comments
 (0)