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 broken pod metrics caching #160

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

aidy
Copy link
Contributor

@aidy aidy commented Feb 27, 2024

Add containerType to cache key, otherwise the cache data could be out of sync or non-existant and lead to stale entries in the prometheus gauge.

Add containerType to cache key, otherwise the cache data could be out of
sync or non-existant and lead to stale entries in the prometheus gauge.
@aidy
Copy link
Contributor Author

aidy commented Feb 28, 2024

Probably goes some way to addressing #69

Copy link
Collaborator

@davidcollom davidcollom left a comment

Choose a reason for hiding this comment

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

This looks awesome, and yea.. not sure why I didn't think of this when implementing... I guess I was assuming that the init container image would be the same as the main (which isn't always the case of course)

@davidcollom davidcollom merged commit 895d12a into jetstack:main Mar 7, 2024
5 checks passed
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.

None yet

2 participants