• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ppker / tailscale / 13028854803
52%

Build:
DEFAULT BRANCH: main
Ran 29 Jan 2025 10:11AM UTC
Jobs 1
Files 782
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jan 2025 07:35AM UTC coverage: 52.374% (+0.06%) from 52.315%
13028854803

Pull #49

github

web-flow
cmd/{k8s-operator,containerboot},kube: ensure egress ProxyGroup proxies don't terminate while cluster traffic is still routed to them (#14436)

cmd/{containerboot,k8s-operator},kube: add preshutdown hook for egress PG proxies

This change is part of work towards minimizing downtime during update
rollouts of egress ProxyGroup replicas.
This change:
- updates the containerboot health check logic to return Pod IP in headers,
if set
- always runs the health check for egress PG proxies
- updates ClusterIP Services created for PG egress endpoints to include
the health check endpoint
- implements preshutdown endpoint in proxies. The preshutdown endpoint
logic waits till, for all currently configured egress services, the ClusterIP
Service health check endpoint is no longer returned by the shutting-down Pod
(by looking at the new Pod IP header).
- ensures that kubelet is configured to call the preshutdown endpoint

This reduces the possibility that, as replicas are terminated during an update,
a replica gets terminated to which cluster traffic is still being routed via
the ClusterIP Service because kube proxy has not yet updated routig rules.
This is not a perfect check as in practice, it only checks that the kube
proxy on the node on which the proxy runs has updated rules. However, overall
this might be good enough.

The preshutdown logic is disabled if users have configured a custom health check
port via TS_LOCAL_ADDR_PORT env var. This change throws a warnign if so and in
future setting of that env var for operator proxies might be disallowed (as users
shouldn't need to configure this for a Pod directly).
This is backwards compatible with earlier proxy versions.

Updates tailscale/tailscale#14326


Signed-off-by: Irbe Krumina <irbe@tailscale.com>
Pull Request #49: [pull] main from tailscale:main

186 of 309 new or added lines in 10 files covered. (60.19%)

33 existing lines in 12 files now uncovered.

60131 of 114810 relevant lines covered (52.37%)

0.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
83.62
0.55% cmd/k8s-operator/proxygroup.go
2
72.2
0.91% types/views/views.go
4
5.43
0.0% cmd/k8s-operator/operator.go
5
72.31
-1.13% cmd/k8s-operator/egress-eps.go
6
0.0
0.0% cmd/containerboot/healthz.go
8
22.89
-0.35% cmd/containerboot/settings.go
8
81.21
-2.19% cmd/k8s-operator/egress-services.go
14
0.0
0.0% cmd/containerboot/main.go
74
24.08
6.63% cmd/containerboot/services.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.48
2.86% k8s-operator/sessionrecording/ws/conn.go
1
0.0
0.0% cmd/containerboot/main.go
1
87.06
-1.18% packages/deb/deb.go
1
84.91
-0.05% k8s-operator/conditions.go
2
77.18
-0.6% derp/derp_client.go
2
94.44
0.0% util/syspolicy/rsop/resultant_policy.go
2
72.91
0.19% net/netcheck/netcheck.go
3
65.29
-0.33% ssh/tailssh/tailssh.go
3
82.24
-0.4% health/health.go
3
48.82
-0.11% wgengine/router/router_linux.go
4
66.88
-0.02% ipn/ipnlocal/local.go
10
81.21
-2.19% cmd/k8s-operator/egress-services.go
Jobs
ID Job ID Ran Files Coverage
1 13028854803.1 29 Jan 2025 10:11AM UTC 782
52.37
GitHub Action Run
Source Files on build 13028854803
  • Tree
  • List 782
  • Changed 33
  • Source Changed 0
  • Coverage Changed 33
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #49
  • PR Base - main (#13024366869)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc