Repository navigation
feat(design): give a cluster its policy surface (batch 25) - #874
Merged
Merged
Conversation
Batch 25 of the DESIGN amendments (refs #838). A `kubernetes:` cluster template carried a whole policy surface -- default namespace, admission policy, kubeconfig context, storage and ingress defaults -- and `#KubernetesFields` was `{node?}` alone. The five fields with authored use are back (`default_namespace`, `admission_policy`, `kubeconfig_context`, `storage` (`#ClusterStorage`), `ingress` (`#ClusterIngress`)); `image_default` and `pod_default` have 0 authored uses and stay out, and the row now says exactly that instead of counting the whole surface as missing. The kindcluster row, which quoted the same definition, is swept with it. `class` is a Not term, so a storage or ingress provisioner is named by its `name`. Refs #838 Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Contributor
Review — PASSHead SHA: Security screen: PASS — no secrets, no code execution, no guardrail/validator/rulebook edits, no scope mismatch; the diff matches the stated additive schema + prose + ledger change. Comment thread is empty (0 comments) — nothing to disposition. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Batch 25 of the DESIGN amendments the capability ledger records (tracked in #838). A
kubernetes:clustertemplate carried a whole policy surface — default namespace, admission policy, kubeconfig context,
storage and ingress defaults — and
#KubernetesFieldswas{node?}alone.The five fields with authored use are back:
storage(#ClusterStorage)ingress(#ClusterIngress)kubeconfig_contextdefault_namespaceadmission_policyimage_defaultandpod_defaulthave 0 authored uses and stay out — the row now says exactly thatinstead of counting the whole surface as missing.
classis a §2 Not term, so a storage or ingress provisioner is named by itsname. That is not acosmetic rename: the vocabulary rule exists so the design does not borrow a layering word for a
provisioner.
DESIGN.cue#KubernetesFieldsgains five policy fields;#ClusterStorage,#ClusterIngressDESIGN.mddesign/dulling.tsvkind:kubernetesandkind:kindcluster(which quotes the same definition)design/dulling-disposition.mdHow tested
The owning gate, on the committed tree this body describes:
All five fields are exercised by the deploy-kubernetes example (
default_namespace: demo,admission_policy: [restricted],kubeconfig_context: kind-demo,storage: {name: local-path},ingress: {name: traefik, issuer: letsencrypt}), so removing any fails validation. The definition sweep:$ grep -n "KubernetesFields" design/dulling.tsv 113:kind:kindcluster `kindcluster:` is a cluster template: box, engine, digest-pinned node_image, a `nodes` topology (role, per-node image, extra_port_mappings), kubeconfig_context, default_namespace, admission_policy, and the storage/ingress/image_default/pod_default/defaults policy blocks §17.1; §17.6; D-HW-5 a created `kubernetes` (`node:`) under the `kind` cluster driver dulled the NODE image and the extra port mappings (the ingress/NodePort reach path) have fields on `#ClusterNode` (`image`, `port`), and the cluster's policy blocks now have fields on `#KubernetesFields` (`default_namespace`, `admission_policy`, `kubeconfig_context`, `storage`, `ingress`); `image_default`/`pod_default` still have none, and the template's engine/box/digest-pinned node_image are the deployment's own `from:`/`image:` rather than a cluster template's spec/schema/kindcluster.cue:20-58; plugin-substrate/candy/plugin-substrate/charly.yml; DESIGN.cue:#ClusterNode; DESIGN.cue:#KubernetesFields; DESIGN.md:D-HW-5; DESIGN.md:§17.1; DESIGN.md:§17.6; DESIGN.cue:#ClusterPort; DESIGN.cue:#ClusterStorage; DESIGN.cue:#ClusterIngress amend D-DEP-1 114:kind:kubernetes `kubernetes:` is a cluster template: box, kubeconfig (a FILE path) plus kubeconfig_context, admission_policy, default_namespace, storage, ingress (class, cert issuer), image_default (pull policy/secrets), pod_default (priority, tolerations, node selector), the kubevirt platform knobs and defaults (labels/annotations) §17.1; §17.7; D-HW-5 a `kubernetes:` node — `node:` to create the cluster by the configured driver, or `connect: {kube: {context, namespace}}` dulled the cluster policy surface is back in part: `default_namespace`, `admission_policy`, `kubeconfig_context`, `storage` (`#ClusterStorage`) and `ingress` (`#ClusterIngress`) all have fields, and `#ClusterNode` carries `control_plane`, `image` and `port`; `image_default` and `pod_default` (0 authored uses), the kubeconfig FILE path and the kubevirt platform knobs still have no field spec/schema/kubernetes.cue:13-45; plugin-substrate/candy/plugin-substrate/charly.yml; DESIGN.cue:#ClusterNode; DESIGN.cue:#KubernetesFields; DESIGN.md:D-HW-5; DESIGN.md:§17.1; DESIGN.md:§17.7; DESIGN.cue:#ClusterStorage; DESIGN.cue:#ClusterIngress amend D-DEP-1Two rows, both swept — the second is the one this batch edits and the first quotes the same definition.
gate's consistency checks, example loader and negative suite.
Rulebook compliance
/charly-internals:git-workflowbefore any git/gh step.commit: the fields had to be registered in
_deployField;classis a §2 Not term (both as a field andin D-NAME-1's own exception list), and
ingresshad to be listed as singular under D-NAME-1.#KubernetesFieldsare swept, and §17.1's kubernetes row is updated.definitions; the self-test is unchanged at 16 mutations.
Change classification
bash scripts/design-check.sh(4/4) onfb2b973.fully tested and validated.!marker. Additive: five optional fields accept documents that were previouslyrejected and reject none that were accepted. Rollback is
git revert.Filed issues
None from this change. Open from earlier rounds: #839 and #841.
Ref #838 — the tracking issue.
Agent: lead (DeepSeek Harness, deepseek-v4.1-flash)
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)