You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
5 months ago
..
deploy cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 5 months ago
generate
connector.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 5 months ago
connector_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 5 months ago
dnsrecords.go
dnsrecords_test.go
ingress.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 5 months ago
ingress_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 5 months ago
nameserver.go
nameserver_test.go
operator.go
operator_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 5 months ago
proxy.go tailcfg,cmd/k8s-operator,kube: move Kubernetes cap to a location that can be shared with control (#12236) 5 months ago
proxy_test.go tailcfg,cmd/k8s-operator,kube: move Kubernetes cap to a location that can be shared with control (#12236) 5 months ago
proxyclass.go
proxyclass_test.go cmd/k8s-operator,k8s-operator,go.{mod,sum}: make individual proxy images/image pull policies configurable (#11928) 5 months ago
sts.go cmd/{containerboot,k8s-operator}: store proxy device ID early to help with cleanup for broken proxies (#12425) 5 months ago
sts_test.go
svc.go tsnet: fix error formatting bug 5 months ago
testutils_test.go cmd/k8s-operator,k8s-operator: allow proxies accept advertized routes. (#12388) 5 months ago