Skip to content

test(e2e): one kind pin for every e2e surface (#1251) - #1259

Merged
bpalermo merged 1 commit into
mainfrom
upgrade/kind-pin-1251
Oct 5, 2026
Merged

bpalermo merged 1 commit into
mainfrom
upgrade/kind-pin-1251

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Stack 1/3 (#1259 → #1261 → #1262). Closes #1251.

What

e2e/kind-version.sh is the one place Kubernetes is set for every kind e2e surface, in the e2e/etcd-image.sh style (sourced, plain assignments):

KIND_VERSION="v0.33.0"
KUBECTL_VERSION="v1.35.8"
KIND_NODE_IMAGE="${KIND_NODE_IMAGE:-kindest/node:v1.35.8@sha256:07b2536e30b803ed61d1677a79df6115f798ce64c80f9e22f6ed45afd09323c0}"

The values are the ones #1246 pinned. They are not changed here.

  • The seven harnesses that create a kind cluster (eastwest-quic, l4routes, multicluster_{config,replicator,waypoint}, uds, uds-csi) source the file and run kind create cluster --image "$KIND_NODE_IMAGE" --config …. The script-driven nightly jobs stop running the runner's default image (1.37). A local run stops running whatever the local kind defaults to.

  • Local kind binary check: refuse older, warn newer. kind_require_binary runs before kind create cluster.

    • It refuses a kind binary older than KIND_VERSION. A node image is built for one kind release, and an older kind can fail to boot it minutes later, far from the cause.
    • It only warns about a newer kind, since kind still runs the previous release's images.
    • KIND_ALLOW_SKEW=1 downgrades the refusal to a warning. KIND_NODE_IMAGE=<image> overrides the image for one run.
    • Heads-up: a workstation still on kind v0.31.0 now gets a clear refusal at up. Install the pinned kind with go install sigs.k8s.io/[email protected].
  • //e2e:kind_pin_test is a hermetic sh_test in the default bazel test //... set. It fails when:

    • the pin is malformed: kind or kubectl not vX.Y.Z, the image not kindest/node:<kubectl version>@sha256:<64 hex>;
    • test/e2e/testdata/kind-config.yaml names a different image, or a node has no image;
    • any kindest/node: literal in a workflow, composite action, harness or e2e kind config differs from the pin;
    • a helm/kind-action step pins a different version or kubectl_version, or a cluster-creating step leaves node_image unpinned;
    • a harness creates a cluster without sourcing the pin or without --image "$KIND_NODE_IMAGE".

    The workflows reach the test through a new //:ci_definitions filegroup, and the kind config through an exports_files.

  • Docs: docs/runbook.md has a new section, "Bumping the e2e Kubernetes version", and e2e/README.md has one paragraph.

Proof

  • bazel test //e2e:kind_pin_test passes. Mutation-checked: I changed kubectl_version in ci.yaml, dropped a conformance node_image, set the kind-config image to 1.37, removed --image from uds.sh, and removed the source line from l4routes.sh. Each change produced its own FAIL line.
  • kind_require_binary was exercised locally against kind v0.31.0: refused, then allowed with KIND_ALLOW_SKEW=1, then warned with a newer pin, then passed when equal.
  • bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //... is clean, as is make format-check. //website:site_test passes.
  • The nightly run that exercises the scripts on 1.35.8 is triggered on the top of the stack (ci: compose every kind job from .github/actions/setup-kind (#1251) #1261 changes e2e.yaml); results are in that PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

@bpalermo
bpalermo added this pull request to stack #1263 October 5, 2026 14:15
@bpalermo bpalermo changed the title upgrade/kind pin 1251 test(e2e): one kind pin for every e2e surface (#1251) Oct 5, 2026
@bpalermo
bpalermo marked this pull request as ready for review October 5, 2026 14:16
@bpalermo
bpalermo force-pushed the upgrade/kind-pin-1251 branch from 744b4d0 to cf49332 Compare October 5, 2026 15:30
e2e/kind-version.sh is the single source of truth for the kind binary
(v0.33.0), the node image with digest (kindest/node:v1.35.8@sha256:07b2...)
and kubectl (v1.35.8), in the e2e/etcd-image.sh style.

- The seven harnesses that create a kind cluster (eastwest-quic, l4routes,
  multicluster_{config,replicator,waypoint}, uds, uds-csi) source it and pass
  --image "$KIND_NODE_IMAGE", so the script-driven nightly suites stop running
  the runner's default image (1.37) and a local run stops running whatever the
  local kind defaults to.
- kind_require_binary refuses a kind binary OLDER than the pin (it can fail to
  boot a node image built by a newer release, minutes later and far from the
  cause) and only warns about a newer one; KIND_ALLOW_SKEW=1 overrides.
- //e2e:kind_pin_test (hermetic sh_test, in the default //... set) fails when
  test/e2e/testdata/kind-config.yaml, any kindest/node literal, or any
  helm/kind-action version / kubectl_version / node_image in a workflow or
  composite action disagrees with the pin, or when a harness creates a cluster
  without the pinned --image.
- docs/runbook.md "Bumping the e2e Kubernetes version": the one-place bump.

Closes #1251

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo force-pushed the upgrade/kind-pin-1251 branch from cf49332 to c267be5 Compare October 5, 2026 16:02
@bpalermo
bpalermo merged commit fdd14be into main Oct 5, 2026
24 checks passed
@bpalermo
bpalermo deleted the upgrade/kind-pin-1251 branch October 5, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e: script-driven nightly jobs and local e2e scripts pin no kind node image (1.37 vs the 1.35 conformance clusters)

1 participant