Files
tailscale/cmd
BeckyPauley 08caf267a0 Add e2e test for upgrading k8s operator (#22360)
* cmd/k8s-operator/e2e: consolidate shared test helpers and fix PeerRelay test

Move the readiness and reachability checks for ingress, ProxyGroup and API
server proxy tests into shared helpers in helpers_test.go so the upcoming
upgrade/downgrade suite can reuse them.

Also change the PeerRelay verify helpers from exact-equality to subset
checks so this does not fail in real clusters once the Service gets a
LoadBalancer address.

Updates tailscale/corp#34562

Signed-off-by: Becky Pauley <[email protected]>

* cmd/k8s-operator/e2e: add test for upgrade/downgrade of the operator

TestOperatorVersionChange installs the operator at one version, performs
baseline checks, changes the operator to another version, and asserts the
resources stay healthy across the change.

Tests can be run as an upgrade, downgrade or a round-trip (upgrade then
rollback). After each version change, the test re-verifies every managed
resource (ingress, egress, ProxyGroup, API server proxy, PeerRelay),
confirms the operator and proxy workloads actually rolled to the new image,
and performs connectivity checks.

Also skip rebuilding and side-loading a kind image when the node already has
the tagged image, matching the existing EnsurePushed logic when using the
--registry path.

Updates tailscale/corp#34836

Change-Id: Id643255f99a06cf9fbabb722dd37293c8f097c61
Signed-off-by: Becky Pauley <[email protected]>

---------

Signed-off-by: Becky Pauley <[email protected]>
2026-12-03 08:53:00 +00:00
..
2026-07-10 14:26:11 -07:00
2026-07-10 14:26:11 -07:00
2026-07-10 14:26:11 -07:00