tailscale/cmd/k8s-operator
Irbe Krumina 8cc2738609
cmd/{containerboot,k8s-operator}: store proxy device ID early to help with cleanup for broken proxies (#12425)
* cmd/containerboot: store device ID before setting up proxy routes.

For containerboot instances whose state needs to be stored
in a Kubernetes Secret, we additonally store the device's
ID, FQDN and IPs.
This is used, between other, by the Kubernetes operator,
who uses the ID to delete the device when resources need
cleaning up and writes the FQDN and IPs on various kube
resource statuses for visibility.

This change shifts storing device ID earlier in the proxy setup flow,
to ensure that if proxy routing setup fails,
the device can still be deleted.

Updates tailscale/tailscale#12146

Signed-off-by: Irbe Krumina <irbe@tailscale.com>

* code review feedback

Signed-off-by: Irbe Krumina <irbe@tailscale.com>

---------

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2024-06-17 18:50:50 +01:00
..
deploy cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 2024-06-07 19:56:42 +01:00
generate cmd/k8s-operator: cleanup runReconciler signature (#11993) 2024-05-03 19:05:37 +01:00
connector_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 2024-06-07 19:56:42 +01:00
connector.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 2024-06-07 19:56:42 +01:00
dnsrecords_test.go cmd/{k8s-operator,k8s-nameserver},k8s-operator: update nameserver config with records for ingress/egress proxies (#11019) 2024-05-02 17:29:46 +01:00
dnsrecords.go cmd/{k8s-operator,k8s-nameserver},k8s-operator: update nameserver config with records for ingress/egress proxies (#11019) 2024-05-02 17:29:46 +01:00
ingress_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 2024-06-07 19:56:42 +01:00
ingress.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 2024-06-07 19:56:42 +01:00
nameserver_test.go cmd/k8s-operator: default nameserver image to tailscale/k8s-nameserver:unstable (#11991) 2024-05-09 07:29:10 +01:00
nameserver.go cmd/k8s-operator: default nameserver image to tailscale/k8s-nameserver:unstable (#11991) 2024-05-09 07:29:10 +01:00
operator_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 2024-06-07 19:56:42 +01:00
operator.go go generate directives reorder for 'make kube-generate-all' (#12210) 2024-05-27 09:09:34 +01:00
proxy_test.go tailcfg,cmd/k8s-operator,kube: move Kubernetes cap to a location that can be shared with control (#12236) 2024-06-10 16:36:22 +01:00
proxy.go tailcfg,cmd/k8s-operator,kube: move Kubernetes cap to a location that can be shared with control (#12236) 2024-06-10 16:36:22 +01:00
proxyclass_test.go cmd/k8s-operator,k8s-operator,go.{mod,sum}: make individual proxy images/image pull policies configurable (#11928) 2024-06-07 16:18:44 +01:00
proxyclass.go cmd/k8s-operator,k8s-operator,go.{mod,sum}: make individual proxy images/image pull policies configurable (#11928) 2024-06-07 16:18:44 +01:00
sts_test.go cmd/k8s-operator,k8s-operator,go.{mod,sum}: make individual proxy images/image pull policies configurable (#11928) 2024-06-07 16:18:44 +01:00
sts.go cmd/{containerboot,k8s-operator}: store proxy device ID early to help with cleanup for broken proxies (#12425) 2024-06-17 18:50:50 +01:00
svc.go tsnet: fix error formatting bug 2024-06-12 09:15:12 -07:00
testutils_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 2024-06-07 19:56:42 +01:00