Files
tailscale/k8s-operator
Alex Castillo González 4e54f7c5bb k8s-operator/reconciler/recorder: requeue Recorders when their Tailnet changes (#22507)
* 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]>
2026-12-01 15:17:37 +00:00
..