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

Fix a bug where stale endpoints in KubernetesEndpointGroup aren't updated #6012

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

ikhoon
Copy link
Contributor

@ikhoon ikhoon commented Dec 3, 2024

Motivation:

When a Kubernetes service is updated, a new Pod watcher is created and receives events. The old cache should have been cleared at this point, but it was not removed, so stale endpoints were exposed.

Modifications:

  • Clear podToNode map when a new Pod watcher is created

Result:

Fixed a bug where stale endpoints remained when a Kubernetes service was updated.

…pdated

Motivation:

When a Kubernetes service is updated, a new Pod watcher is created and
receives events. At this point, the old cache should have been cleared,
but it was not cleared, so stale endpoints were exposed.

Modifications:

- Clear `podToNode` map when a new Pod watcher is created

Result:

Fixed a bug where stale endpoints remained when a Kubernetes service was updated.
@ikhoon ikhoon added the defect label Dec 3, 2024
@ikhoon ikhoon added this to the 1.31.2 milestone Dec 3, 2024
Copy link
Contributor

@minwoox minwoox left a comment

Choose a reason for hiding this comment

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

👍 👍 👍

@minwoox minwoox merged commit 2134872 into line:main Dec 3, 2024
13 of 14 checks passed
minwoox pushed a commit that referenced this pull request Dec 3, 2024
…pdated (#6012)

Motivation:

When a Kubernetes service is updated, a new Pod watcher is created and receives events. The old cache should have been cleared at this point, but it was not removed, so stale endpoints were exposed.

Modifications:

- Clear `podToNode` map when a new Pod watcher is created

Result:

Fixed a bug where stale endpoints remained when a Kubernetes service was updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants