Skip to content

chore(schema): remove the eight inert #Kubernetes cluster-template fields (silent no-ops, secret: included) #222

Closed

Description

@aitrawog

Summary

Eight fields of the kind: kubernetes cluster template are authorable and silently
inert
: #Kubernetes is CLOSED, so they validate, and then nothing reads them. For
secret: in particular that is worse than a missing field — an operator who writes

secret: {backend: external-secrets, store: vault-prod, prefix: prod/}

gets no ExternalSecret, no secretKeyRef wiring, and no error, while the schema
comment (schema/kubernetes.cue:93-97) reads as a live contract.

Evidence (RCA)

Zero consumers, verified both by grep over the pinned checkouts and by the read set of the
one generator that consumes a cluster template (plugin-k8sgen's opts.Cluster.*:

AdmissionPolicy, DefaultNamespace, Defaults.{Labels,Annotations}, ImageDefault.PullPolicy,
ImageDefault.PullSecrets, Ingress.{Class,CertIssuer,Enabled,PathTypeDefault},
PodDefault.{NodeSelector,PriorityClass,Tolerations}
Field Schema cite Consumers
secret.{backend,store,prefix} schema/kubernetes.cue:25,93-97 0
resources.{requests,limits} schema/kubernetes.cue:15,63-70 0
hostnames[] schema/kubernetes.cue:16,71-75 0
replica schema/kubernetes.cue:14 0 (only the per-deploy deploy.replica is read)
plan[] schema/kubernetes.cue:37 0
gateway_api schema/kubernetes.cue:24,89-92 0
observability.service_monitor* schema/kubernetes.cue:28,109-112 0
network_policy schema/kubernetes.cue:29 0

TODO.md:68 already lists "most of #Kubernetes" in the unused-fields deletion inventory;
this issue is the execution of that item for these eight.

Blast radius

Any user config that sets one of them believes it took effect. The claim-keyed sweep must
therefore cover the surfaces that present them as live: .dsh/skills/kubernetes ("every
non-scalar policy block … is where cluster knobs live"), the kubernetes skill entity in
layer-charly-kubernetes, and schema/kubernetes.cue's own header comment.

Scope of the PR that closes this

Delete the eight fields from schema/kubernetes.cue (and #KubernetesResources,
#KubernetesHostname, #KubernetesGatewayAPI, #KubernetesObservability,
#KubernetesSecretsBackend if nothing else uses them), regenerate with charly task cue-gen, and sweep every doc/skill/comment that presents them as live.

Out of scope here (deliberately, with its own decision): #KubernetesKubeVirt.* —
use_emulation etc. are inert too, but the fix there is to wire the escape hatch the
schema documents rather than delete it (tracked separately).

Agent: dsh-k8s-ext
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. added a commit that references this issue on Oct 14, 2026
    b274575
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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