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(enhance_k8s_metadata): remove nonexistent pods on cache refresh #369

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

swiatekm
Copy link

@swiatekm swiatekm commented Dec 2, 2021

There's no reason to keep keys for pods which don't exist anymore and unnecessarily spam the API Server. Should fix #

Move the cache refresh logic to the CacheStrategy, which is the more natural place for it, and makes it easier to test.

There's no reason to keep keys for pods which don't exist anymore and unnecessarily spam the API Server.

Move the cache refresh logic to the CacheStrategy, which is the more
natural place for it, and makes it easier to test.
@swiatekm swiatekm force-pushed the fix/cache-remove-nonexistent-pods branch from c211276 to 79b343d Compare December 2, 2021 14:20
@swiatekm swiatekm marked this pull request as ready for review December 2, 2021 14:20
@swiatekm swiatekm requested a review from a team as a code owner December 2, 2021 14:20
Copy link
Contributor

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

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

👍 👏 🏅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants