mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-01 14:12:32 -08:00
* k8s-operator/reconciler/recorder: requeue Recorders when their Tailnet changes A Recorder whose spec.tailnet refers to a Tailnet that is not ready yet is marked RecorderReady=False and not requeued. Watch Tailnet resources and enqueue the Recorders that refer to the changed Tailnet. Fixes #22457 Signed-off-by: Alex Castillo <[email protected]> * k8s-operator/reconciler/recorder: requeue when the Tailnet client is not ready The Tailnet reconciler writes Ready and its finalizer before it marks the client ready, and both writes enqueue Recorders. A reconcile in that window still sees the tailnet as unavailable. Return the existing short requeue so that case retries without waiting for another Tailnet event. Move the Tailnet watch mapping test next to the other recorder tests. Updates #22457 Signed-off-by: Alex Castillo <[email protected]> * k8s-operator/reconciler/recorder: use FakeClientProvider in the ready test TestRecorderProvisionsWhenTailnetBecomesReady had its own client provider, a copy of reconcilertest.FakeClientProvider. Run two reconcilers on the same fake client instead: the first fails to resolve the tailnet, and the second resolves it with NewFakeClientProvider. Updates #22457 Signed-off-by: Alex Castillo <[email protected]> --------- Signed-off-by: Alex Castillo <[email protected]>