feat: provision register + k3s kubeconfig #8

Merged
michal merged 1 commits from feat/register-and-kubeconfig into main 2026-03-31 00:16:06 +00:00
Owner

Summary

  • Add labctl provision register <mac> <hostname> to re-add machines to installed state without reprovisioning (after state loss)
  • Add labctl app k3s kubeconfig <target> to fetch, rewrite, and merge kubeconfig into ~/.kube/config
  • Full stack for register: shared protocol type, bastion REST API, bastion WS command handler, labd forwarding route, CLI client method, CLI command

Test plan

  • labctl provision register tested live — re-added labmaster and worker0-k8s0
  • Build passes, all 206 tests pass
  • labctl app k3s kubeconfig worker0-k8s0 merges into ~/.kube/config

🤖 Generated with Claude Code

## Summary - Add `labctl provision register <mac> <hostname>` to re-add machines to installed state without reprovisioning (after state loss) - Add `labctl app k3s kubeconfig <target>` to fetch, rewrite, and merge kubeconfig into `~/.kube/config` - Full stack for register: shared protocol type, bastion REST API, bastion WS command handler, labd forwarding route, CLI client method, CLI command ## Test plan - [x] `labctl provision register` tested live — re-added labmaster and worker0-k8s0 - [x] Build passes, all 206 tests pass - [ ] `labctl app k3s kubeconfig worker0-k8s0` merges into ~/.kube/config 🤖 Generated with [Claude Code](https://claude.com/claude-code)
michal added 1 commit 2026-03-31 00:15:53 +00:00
feat: provision register command and k3s kubeconfig merge
Some checks failed
CI/CD / lint (pull_request) Failing after 11s
CI/CD / test (pull_request) Failing after 11s
CI/CD / typecheck (pull_request) Failing after 22s
CI/CD / build (pull_request) Has been skipped
CI/CD / publish-rpm (pull_request) Has been skipped
CI/CD / publish-deb (pull_request) Has been skipped
49d747db98
Add `labctl provision register` to re-add machines to installed state
without reprovisioning (e.g. after bastion state loss). Full stack:
protocol type, bastion API + WS handler, labd route, CLI command.

Add `labctl app k3s kubeconfig <target>` to fetch kubeconfig from a
k3s node via SSH, rewrite server URL, and merge into ~/.kube/config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
michal merged commit f3f0ea48e7 into main 2026-03-31 00:16:06 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/lab#8