Commit Graph

1 Commits (d06f48f3a6de6eb0870eb471a6d82941dec4c1b6)

Author SHA1 Message Date
David Bond d06f48f3a6
cmd/k8s-operator: add reconciler for Tailnet resource (#18132)
This commit adds the new reconciler for the Tailnet resource in a new
location that we want to put all future reconcilers in and eventually
refactor existing reconcilers into.

The Tailnet resource represents OAuth credentials for a single tailnet and
uses status fields to indicate the validity of the credentials. Validity
is determined via expected fields existing (client_id and client_secret)
and API calls for devices, keys & services being possible using them.

Subsequent resources will be updated to refer to a Tailnet as the source
of their oauth credentials, or fall back to the configured default.

Fixes: https://github.com/tailscale/corp/issues/34767

Signed-off-by: David Bond <davidsbond93@gmail.com>
3 days ago