Skip to content

fix: bump kubernetes fork to fix WatchList multicluster LIST empty bug#17

Merged
zachsmith1 merged 1 commit intomainfrom
fix/watchlist-multicluster-keyfunc
Apr 4, 2026
Merged

fix: bump kubernetes fork to fix WatchList multicluster LIST empty bug#17
zachsmith1 merged 1 commit intomainfrom
fix/watchlist-multicluster-keyfunc

Conversation

@zachsmith1
Copy link
Copy Markdown
Contributor

Summary

Bumps kplane-dev/kubernetes, kplane-dev/storage, and kplane-dev/informer to pick up the fix for the WatchList multicluster LIST empty bug.

Problem

After apiserver restart, LIST returned empty results for all but one VCP. The reflector's WatchList temporary store keyed objects by namespace/name, causing objects from different clusters with the same name to overwrite each other.

Fix

kplane-dev/kubernetes#2 adds WatchListKeyFunc to the reflector. The cacher sets it to the cluster-aware key function when identity hooks are configured.

Test plan

  • TestListAfterRestart smoke test — creates 3 VCPs, restarts apiserver, verifies LIST still works for all VCPs

The reflector's WatchList temporary store keyed objects by namespace/name,
causing objects from different clusters with the same name (e.g., every
VCP has a "default" namespace) to overwrite each other. After apiserver
restart, LIST returned empty results for all but the last cluster.

Bumps kplane-dev/kubernetes, kplane-dev/storage, and kplane-dev/informer
to pick up the fix that adds WatchListKeyFunc to the reflector, allowing
the cacher to use a cluster-aware key function for the temporary store.

Adds TestListAfterRestart smoke test that reproduces the bug (create
multiple VCPs, restart apiserver, verify LIST still works).
@zachsmith1 zachsmith1 merged commit 56c3781 into main Apr 4, 2026
1 check passed
@kplane-dev kplane-dev deleted a comment from cursor bot Apr 4, 2026
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