Skip to content

Use shared clustercache from libsveltos; invalidate cache on auth errors#1878

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:clustercache
Jul 18, 2026
Merged

Use shared clustercache from libsveltos; invalidate cache on auth errors#1878
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:clustercache

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

Replaces the addon-controller-local controllers/clustercache package with the shared lib/clustercache now in libsveltos, so event-manager, healthcheck-manager, and classifier can reuse the same cache instead of each managing their own (or none at all).

Calls InvalidateOnAuthError in handleDeployerError and processUndeployResult so a cached rest.Config/mapper/discovery-client (and the underlying workload-identity cache entry) gets evicted as soon as the API server rejects credentials with 401/403, rather than only on TTL expiry or an explicit cluster delete.

Replaces the addon-controller-local controllers/clustercache package
with the shared lib/clustercache now in libsveltos, so event-manager,
healthcheck-manager, and classifier can reuse the same cache instead of
each managing their own (or none at all).

Calls InvalidateOnAuthError in handleDeployerError and
processUndeployResult so a cached rest.Config/mapper/discovery-client
(and the underlying workload-identity cache entry) gets evicted as soon
as the API server rejects credentials with 401/403, rather than only on
TTL expiry or an explicit cluster delete.
@gianlucam76
gianlucam76 merged commit e5eb690 into projectsveltos:main Jul 18, 2026
11 checks passed
@gianlucam76
gianlucam76 deleted the clustercache branch July 18, 2026 11:38
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.

1 participant