Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.2] watcher: Fix pod lookup if the index is out-of-sync #3551

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

lambdanis
Copy link
Contributor

Backport of #3409

@lambdanis lambdanis added kind/backport This PR provides functionality previously merged into master. release-note/bug This PR fixes an issue in a previous release of Tetragon. labels Mar 21, 2025
@lambdanis lambdanis requested a review from a team as a code owner March 21, 2025 17:16
@lambdanis lambdanis requested review from will-isovalent and removed request for a team March 21, 2025 17:16
[ upstream commit: 1df304f ]
[ backporter's notes:
  On the upstream branch this change was done in a different file, pod.go, as
  the functions got moved there in the meantime. ]

The K8sWatcher.FindPod method first tries to find a pod using index, then, if
unsuccessful, falls back to walking the entire pods list. This fallback was
incorrect - fix it.

Signed-off-by: Anna Kapuscinska <[email protected]>
@lambdanis lambdanis force-pushed the backports/v1.2/find-pod branch from 1946388 to 8fc8dbb Compare March 25, 2025 16:56
@lambdanis lambdanis merged commit c9a01f3 into cilium:v1.2 Mar 25, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backport This PR provides functionality previously merged into master. release-note/bug This PR fixes an issue in a previous release of Tetragon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants