Skip to content

helm: recreate daemonset pod when configmap changes#812

Merged
jrfastab merged 1 commit into
cilium:mainfrom
cjtim:helm-recreate-pod-cm-changes
Apr 7, 2023
Merged

helm: recreate daemonset pod when configmap changes#812
jrfastab merged 1 commit into
cilium:mainfrom
cjtim:helm-recreate-pod-cm-changes

Conversation

@cjtim

@cjtim cjtim commented Mar 16, 2023

Copy link
Copy Markdown
Contributor

After the helm upgrade with new configmap changes. the daemonset pod is not recreated to retrieve the new configmap.

The readconfig function only read on pod start https://github.com/cilium/tetragon/blob/main/cmd/tetragon/main.go#L542

to make Tetragon restart and retrieve the new configuration. Kubernetes annotation helps determine whenever the pod needs to be recreated.

Signed-off-by: Jinna C <jinnatim@gmail.com>
@cjtim
cjtim requested a review from a team as a code owner March 16, 2023 10:47
@cjtim
cjtim requested a review from tpapagian March 16, 2023 10:47
@cilium cilium deleted a comment from netlify Bot Mar 16, 2023

@kkourt kkourt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that makes sense. Would be nice if @michi-covalent had a look as well.

Looking into this, we could also set the config map as immutable but that's orthogonal to this patch.

Thanks!

@kkourt
kkourt requested a review from michi-covalent March 28, 2023 09:46
@jrfastab

jrfastab commented Apr 7, 2023

Copy link
Copy Markdown
Contributor

LGTM thanks.

@jrfastab
jrfastab merged commit 846910a into cilium:main Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants