Skip to content

Prime global auto-mirror sources on startup - #710

Open
komapa wants to merge 6 commits into
emberstack:mainfrom
seatgeek:feature/debug-mirroring
Open

komapa wants to merge 6 commits into
emberstack:mainfrom
seatgeek:feature/debug-mirroring

Conversation

@komapa

@komapa komapa commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Supersedes #646, which was auto-closed as stale. The change is still needed. The branch is now up to date with main, and all tests pass.

On a cold start or resource watch reconnect, _propertiesCache and related caches are empty while the namespace watch keeps firing. Namespace Added/Modified handlers iterate auto-mirror sources from in-memory state. If the source is not cached yet, reconciliation is skipped. This showed up as ConfigMaps missing in new namespaces for minutes while Secrets sometimes caught up sooner.

This PR fixes a race where new or updated namespaces are reconciled before the ConfigMap/Secret watch has replayed auto-mirror sources into memory, so reflections (e.g. default/env-global) are delayed until restart or watch rollover.

Follow-up to #645.

komapa added 6 commits May 11, 2026 09:34
Remember unrestricted auto-mirror sources across reconnects and
discover them once from the cluster so namespace events can reconcile
before watch replay catches up.
Track all auto-mirror sources instead of only unrestricted ones
during discovery and eager priming, and add a helper for
identifying auto-mirror sources from mirroring properties.
Add tests that cover disabled and disallowed auto-mirror
sources instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant