tailscale/cmd/k8s-operator
David Anderson a7ab3429b6 cmd/k8s-operator: refactor reconcile loop, un-plumbing reconcile.Result.
We used to need to do timed requeues in a few places in the reconcile logic,
and the easiest way to do that was to plumb reconcile.Result return values
around. But now we're purely event-driven, so the only thing we care about
is whether or not an error occurred.

Incidentally also fix a very minor bug where headless services would get
completely ignored, rather than reconciled into the correct state. This
shouldn't matter in practice because you can't transition from a headful
to a headless service without a deletion, but for consistency let's avoid
having a path that takes no definite action if a service of interest does
exist.

Updates #502.

Signed-off-by: David Anderson <danderson@tailscale.com>
2022-12-14 11:35:59 -08:00
..
manifests cmd/k8s-operator: add a kubernetes operator. 2022-12-12 13:20:02 -08:00
operator.go cmd/k8s-operator: refactor reconcile loop, un-plumbing reconcile.Result. 2022-12-14 11:35:59 -08:00
operator_test.go cmd/k8s-operator: remove unnecessary timed requeue. 2022-12-13 17:15:06 -08:00