mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-09 11:52:00 -04:00
* cmd/k8s-operator: move egress EndpointSlice write back into gated provision PR #20347 moved the EndpointSlice createOrUpdate outside of provision, causing it to run on every reconcile. This resulted in racing egress-eps on the EndpointSlice, sometimes causing the TailscaleEgressSvcConfigured to become stuck as False with the Service not fully updated. Gate it again so it only runs when a reprovision is required. Updates #20916 Signed-off-by: Becky Pauley <becky@tailscale.com> * cmd/k8s-operator: recover missing egress EndpointSlices Add a watch for EndpointSlices in the egress-services reconciler so a deleted slice re-triggers a Service reconcile directly. Treat a Service whose expected per-family EndpointSlice is missing as not up to date so it re-enters provision and recreates the slice. Also sort endpoints by Pod UID before writing them in the egress-eps reconciler, so an unchanged set of ready Pods cannot result in a different order and trigger an unnecessary Update. Updates #20916 Signed-off-by: Becky Pauley <becky@tailscale.com> --------- Signed-off-by: Becky Pauley <becky@tailscale.com>