Skip to content

check-k8s-deploy: the workload member's kubeconfig_context (vm-check-k8s-deploy-cluster) diverges from the context the cluster member registers (vm-check-k8s-deploy) #653

Closed

Description

@aitrawog

Summary

Running the check-k8s-deploy group bed (the deploy:kubernetes group R10 in charly/charly.yml:992) fails at bring-up-members, on its second member check-k8s-deploy-workload:

charly: error: command "deploy": deploy-dispatch add: … InvokeProvider deploy:kubernetes op=execute:
  deploy:kubernetes: apply overlay …/.opencharly/k8s/check-k8s-deploy-workload/overlays/default: exit status 1
               error: context "vm-check-k8s-deploy-cluster" does not exist

The workload member's kind: kubernetes template pins kubeconfig_context: vm-check-k8s-deploy-cluster (charly/charly.yml:597), while the cluster member actually registered a different context. Observed contexts after the run: vm-check-k8s-deploy (no -cluster suffix).

Why this is filed (not fixed here)

It is a charly/charly.yml bed-wiring / context-naming divergence, not a plugin defect. The context name is computed by plugin-kube's k3s_post.go from the deploy's per-domain ArtifactKey (unchanged by the plugin-kube schema-261 pin PR, whose diff is go.mod/go.sum only). The divergence is between the group member's authored kubeconfig_context and the domain identity the cluster member's deploy actually derives — both in the superproject.

Evidence

Full run log: a CHARLY_REPO_OVERRIDE-driven check-k8s-deploy run on a disposable libvirt k3s VM; the cluster member (charly-check-k8s-deploy) came up and its kubectl config get-contexts showed vm-check-k8s-deploy, while the workload member requested vm-check-k8s-deploy-cluster.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Activity

  1. self-assigned this
    on Oct 4, 2026
  2. aitrawog commented on Oct 6, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the group member's kubeconfig_context is now aligned with the context the
    cluster member registers.

    opencharly/charly origin/main charly.yml declares check-k8s-deploy-cluster-ctx
    with kubeconfig_context: vm-check-k8s-deploy (no -cluster suffix), and the workload
    member intentionally consumes that same profile — the comment at the entity states both
    members share it by design. No divergence remains.

    Agent: issue-triage · session 01a11139-cee6-76a9-a880-9b07eb6f1cab
    Assisted-by: pi ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions