Skip to content

test(e2e): add make e2e-k3s to run the end-to-end test on a remote k3s server - #2

Merged
hayone1 merged 1 commit into
mainfrom
feat/e2e-k3s
Nov 4, 2026
Merged

hayone1 merged 1 commit into
mainfrom
feat/e2e-k3s

Conversation

@hayone1

@hayone1 hayone1 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

What does this change?

Adds make e2e-k3s (test/e2e/k3s.sh). It runs the existing end-to-end test (test/e2e/run.sh) on a remote k3s server over SSH. GitHub CI is unchanged and keeps using kind.

Why?

A remote server has more compute, and the test cluster stays off the maintainer's machine. The run is started by hand; it never runs in CI.

How it works:

  • builds the images locally and copies them with docker save | ssh ... k3s ctr images import
  • reaches the Kubernetes API through an SSH tunnel, so port 6443 does not need to be open
  • tags images per run and removes the tunnel and the copied images on exit
  • reads the server from K3S_HOST in .env, so no server address lands in the repository

run.sh also strips a trailing \r from E2E_ZONE now (for .env files with Windows line endings).

How did you test it?

  • make test passes
  • make lint passes
  • make e2e-k3s passed in fake mode and in real mode (real Hostinger zone, DNS checked on Hostinger's name servers). Afterwards the server had no test images or namespaces left, and the zone had only its original records.

Checklist

  • Docs updated (docs/development.md, run-e2e skill, AGENTS.md, CHANGELOG.md)
  • No secrets, tokens or personal data in code, tests, logs or this PR

🤖 Generated with Claude Code

…s server

GitHub keeps running the end-to-end test on kind. make e2e-k3s is started
by hand and runs the same run.sh on a k3s server over SSH, so the cluster
work uses the server's compute instead of the maintainer's machine.

test/e2e/k3s.sh builds the images locally, imports them with
"docker save | ssh ... k3s ctr images import", reaches the API through an
SSH tunnel, tags images per run, and removes the tunnel and the copied
images on exit. The server address comes from K3S_HOST in .env, so it never
lands in the repository.

run.sh now also strips a trailing \r from E2E_ZONE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hayone1
hayone1 enabled auto-merge (squash) November 4, 2026 13:35
@hayone1
hayone1 merged commit 6810a0a into main Nov 4, 2026
11 checks passed
@hayone1
hayone1 deleted the feat/e2e-k3s branch November 4, 2026 13:42
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.

1 participant