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

kubeinvcache: Create the cachedmaps on demand #2815

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

burak-ok
Copy link
Member

@burak-ok burak-ok commented May 7, 2024

kubeinvcache: Create the cachedmaps on demand

#2751 made the resource cache more general and modified it so that pruning old objects is done periodically in the background with the help of a timer.
That means if the CachedMap is allocated, there is a goroutine running in the background for it.

We do not need that if the KubeInventoryCache is not running. Therefore this PR creates these maps on demand and closes them accordingly

Signed-off-by: Burak Ok <burakok@microsoft.com>
@burak-ok burak-ok requested a review from flyth as a code owner May 7, 2024 14:20
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

1 participant