Skip to content

Prime global auto-mirror sources on startup#646

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

Prime global auto-mirror sources on startup#646
komapa wants to merge 5 commits into
emberstack:mainfrom
seatgeek:feature/debug-mirroring

Conversation

@komapa
Copy link
Copy Markdown
Contributor

@komapa komapa commented May 11, 2026

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 2 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.
@github-actions
Copy link
Copy Markdown

Automatically marked as stale due to no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale label May 26, 2026
komapa added 3 commits May 26, 2026 10:20
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
@komapa komapa marked this pull request as ready for review May 26, 2026 15:48
@github-actions github-actions Bot removed the stale label May 27, 2026
@komapa
Copy link
Copy Markdown
Contributor Author

komapa commented Jun 2, 2026

@winromulus I promise this is the last PR from me for a while :) We have been running these latest fixes and we finally do not have issues with new namespaces needing configmap replication. I would love review from you if possible. Thank you!

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