Commit Graph

2 Commits (9b5c7895e61cd9bc691d17e9fcad442994492ed4)

Author SHA1 Message Date
David Bond 98c0273de1
cmd/k8s-operator: create Tailnet CRD
This commit contains the initial custom resource defition for `Tailnet`.

This resource will be used to allow users to join different workloads
to different tailnets within a cluster. Each `Tailnet` refers to a
secret in the operator namespace that must contain valid OAuth credentials.

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

Signed-off-by: David Bond <davidsbond93@gmail.com>
1 day ago
Tom Proctor aa5b2ce83b
cmd/k8s-operator: add .gitignore for generated chart CRDs (#17406)
Add a .gitignore for the chart version of the CRDs that we never commit,
because the static manifest CRD files are the canonical version. This
makes it easier to deploy the CRDs via the helm chart in a way that
reflects the production workflow without making the git checkout
"dirty".

Given that the chart CRDs are ignored, we can also now safely generate
them for the kube-generate-all Makefile target without being a nuisance
to the state of the git checkout. Added a slightly more robust repo root
detection to the generation logic to make sure the command works from
the context of both the Makefile and the image builder command we run
for releases in corp.

Updates tailscale/corp#32085

Change-Id: Id44a4707c183bfaf95a160911ec7a42ffb1a1287

Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
2 months ago