You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an explicit sharing mode so multiple repos and/or git worktrees can intentionally target the same kindctl-managed kind cluster, instead of always deriving a private cluster from each repo/worktree path.
Motivation
Today kindctl's safe default is:
one repo/worktree path -> one derived cluster
That is ideal for agent isolation, but some local workflows need a shared integration cluster across several repos, for example:
gateway, frontend, and service-a need to run against the same local platform cluster.
Multiple worktrees need to test cross-service behavior against a shared set of CRDs/controllers.
A developer wants private per-worktree clusters by default, but a named shared cluster for integration testing.
Sharing should be explicit so the default agent-safe isolation remains unchanged.
Proposed UX
Add a shared scope flag accepted by all cluster-targeting commands:
kindctl create --share platform
kindctl kubectl --share platform get pods -A
kindctl load --share platform myapp:dev
kindctl hibernate --share platform
kindctl resume --share platform
kindctl doctor
kindctl delete --share platform
Any repo/worktree using the same share key targets the same cluster.
Proposed semantics
Default behavior remains unchanged: no --share means derive from the current repo/worktree path.
--share KEY derives from the share key instead of the workspace root.
Share keys are sanitized/capped similarly to --tag.
--share and --tag can coexist if useful, e.g. --share platform --tag e2e, but this should be explicitly designed before implementation.
Registry entries record shared ownership metadata, for example:
Summary
Add an explicit sharing mode so multiple repos and/or git worktrees can intentionally target the same kindctl-managed kind cluster, instead of always deriving a private cluster from each repo/worktree path.
Motivation
Today kindctl's safe default is:
That is ideal for agent isolation, but some local workflows need a shared integration cluster across several repos, for example:
gateway,frontend, andservice-aneed to run against the same local platform cluster.Sharing should be explicit so the default agent-safe isolation remains unchanged.
Proposed UX
Add a shared scope flag accepted by all cluster-targeting commands:
Any repo/worktree using the same share key targets the same cluster.
Proposed semantics
--sharemeans derive from the current repo/worktree path.--share KEYderives from the share key instead of the workspace root.--tag.--shareand--tagcan coexist if useful, e.g.--share platform --tag e2e, but this should be explicitly designed before implementation.{ "scope": "shared", "share": "platform", "roots": [ "/Users/me/projects/gateway", "/Users/me/projects/frontend" ] }Safety requirements
--nameescape hatch should be introduced.nukeandprunemust not touch unmanaged kind clusters.~/.kube/config.kindctl list --workspaceshould make it clear when a visible cluster is shared vs private.Acceptance criteria
--share KEYworks withcreate,delete,kubectl,exec,path,ctx,env,load,hibernate, andresume.--share KEYderive the same kubeconfig path and cluster name.--sharestill derive distinct private clusters.