Repository navigation
Description
Summary
An externally-managed Kubernetes cluster (OVH / GKE / EKS / on-prem) — one charly did
not create — is reachable today through a kind: kubernetes cluster template that carries a
context name only. Two authored inputs that such a cluster needs have no home in the
schema, and one of them makes the substrate's registry-free boot path impossible:
- No
kubeconfigpath.#Kubernetesdeclareskubeconfig_contextonly
(schema/kubernetes.cue:18),#KubernetesDeployVenuecarrieskube_contextonly
(schema/deploy.cue:805-810), and the deploy path shellskubectl --contextwith no
--kubeconfig(plugin-kube/candy/plugin-kube/deploy.go:169-174). An externally-managed
cluster is usually addressed by a per-cluster kubeconfig file rather than the ambient
$KUBECONFIG/~/.kube/config. Pointing charly at a kubeconfig must be all it takes to
deploy onto the cluster in that kubeconfig. (Thekube:andkubevirt:verbs already
accept akubeconfig:field —plugin-kube/.../schema/kube.cue:60,
plugin-kubevirt/.../schema/kubevirt.cue:47— which exposes the asymmetry.) - No explicit guest identity on
kubevirt:. Akind: kubevirtVM whose boot medium is
not acontainer_diskhas no way to declare its guest distro/ssh user, and
resolveGuestIdentityhard-errors for every non-containerDisk arm even when
cloud_init:is supplied (plugin-kubevirt/candy/plugin-kubevirt/lifecycle.go:383-386,
whose own error text says the pair is "not yet carried by #KubeVirt"). That makes the CDI
data_volumearm — the one boot path on an external cluster that needs no image
registry and no node SSH — undeployable.
Measured on a live externally-managed cluster (quant-dev, OVH, 3 nodes, k8s v1.35.2):
KubeVirt v1.9.0 + CDI v1.66.1 were installed there and a VMI booted (vmi ... Running,
virt-launcher 2/2) — so this is a real, exercised gap, not a theoretical one.
Scope of the PR that closes this
schema/kubernetes.cue — kubeconfig?: string on #Kubernetes, plus the same key on
#ResolvedKubernetes (schema/substrate_template.cue) so the resolve envelope carries the
file beside the context. schema/kubevirt.cue — distro?: string + ssh_user?: string on
#KubeVirt, mirroring #VmBoxMetadata's existing pair (same Go field names, one
vocabulary), with the presence rule for non-containerDisk arms enforced by the kind
provider's OpValidate (this file's documented home for cross-arm rules). Regenerated with
charly task cue-gen; clean regen is a no-op.
Consumers (producer → consumer order, B6)
opencharly/sdk— carry the path through the cluster resolve helper.opencharly/plugin-kube—deploy:kubernetes--kubeconfig, and prefer the template's
file in thekube:verb's cluster resolve.opencharly/plugin-kubevirt— the VM lifecycle, thekubevirt:verb and the managed
virtctl port-forwardargv; and the explicit guest identity inresolveGuestIdentity.
The consumer PR that runs the bed is the plugin-kubevirt one (charly.check-kubevirt-vm- a live external-cluster run).
Agent: dsh-k8s-ext
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Oct 14, 2026
CLAIM
Claiming the external-cluster input contract in this repo and landing it from a session
worktree on
feat/external-cluster-inputs, branched off freshorigin/main(6be6360).State: the schema edit +
charly task cue-genregeneration are done and green locally(
go build ./...,go test ./...,gofmt -l .empty;golangci-lint run ./...at the CIpin
v2.13.2in flight). Two anomalies were run through RCA while authoring and are fixed:@go(-)union discriminatorsource.kindinside a CUEifcollapsed thewhole
#KubeVirttype toany /* IncompleteKind: _|_ */— the presence rule now lives inthe kind provider's
OpValidate, this file's documented home for cross-arm rules;distro?: #DistroIDemitted an undefined Go identifier (undefined: DistroID) because#DistroIDis@go(-)and generates no Go type — the field is a plainstring, exactlyas
#VmBoxMetadata.distroalready is, validated against the vocabulary inOpValidate.Next: open the PR with the pasted module-CI evidence and the executed no-disposable-target
premise; then the consumer PRs (sdk → plugin-kube → plugin-kubevirt, the last carrying the
bed). Status updates follow at each milestone.
Agent: dsh-k8s-ext
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 14, 2026
STATUS
PR opened: #221 — head
8b80d6a(feat/external-cluster-inputs, off freshorigin/main6be6360).Done in this head:
#Kubernetes.kubeconfig+#ResolvedKubernetes.kubeconfig;#KubeVirt.distro/.ssh_user; regenerated withcharly task cue-gen(clean regen = no-op onthe committed tree). Module-CI gate green on the head and pasted in the PR body
(
go build,go test -count=1with theschemasuite at 19.189s,gofmt -lempty,golangci-lint run ./...→0 issues., plus the executed no-disposable-target premise).Next: the consumer chain, producer-first —
sdk→plugin-kube→plugin-kubevirt, the lastone carrying the live bed (
charly.check-kubevirt-vm+ an external-cluster run). In parallel,the platform leg on the external cluster (
layer-kubevirt-operator) is in flight, which isindependent of this change.
Blocked by nothing; no other session holds this scope.
Agent: dsh-k8s-ext
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
feat(schema): external-cluster inputs — kubeconfig + kubevirt guest i…
aitrawog commentedon Oct 14, 2026
RESOLVED — landed as #221 (squash), head
8b80d6a, validator PASS on the re-run.What shipped:
#Kubernetes.kubeconfig(+ the same key on#ResolvedKubernetes) so pointing charlyat a kubeconfig is enough to deploy onto the cluster in it; and
#KubeVirt.distro/.ssh_user, theguest identity a non-containerDisk boot medium must declare — which is what makes the registry-free
CDI
data_volumepath usable on an externally-managed cluster. Both plainstring, with the id andpresence rules in the kind provider's
OpValidate(#DistroIDis@go(-); a CUEifkeyed on the@go(-)union discriminator collapses the whole#KubeVirttype).Round 1 was a validator BLOCK — four body/process findings, RCA posted on the PR naming the missed
controls; the round's corrections (a sweep claim needs a non-piped command whose output would differ
if the claim were false; the session ledger is never a filed issue; the footer is italic and last)
are now recorded in the session ledger and bind the rest of this campaign. No code changed, so the
gate was re-run on the same head.
Filed: #222 (the eight inert
#Kubernetesfields).Consumer chain, producer-first: sdk → plugin-kube → plugin-kubevirt (the last carries the live bed).
Agent: dsh-k8s-ext
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)