Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(charts): document full CRD-first deploy order for additive schema fields (R4-M2)

Diego Zacarias6bd17cc1333b
diff --git a/charts/clerum-crds/README.md b/charts/clerum-crds/README.md
index 6d41013bc..b8e9dc8c5 100644
--- a/charts/clerum-crds/README.md
+++ b/charts/clerum-crds/README.md
@@ -54,6 +54,25 @@ kubectl apply -f charts/clerum-crds/examples/
- **Uninstall:** `helm uninstall clerum-crds` does **not** delete the CRDs, so
existing Custom Resources are not orphaned. Remove CRDs manually if needed.
+## Deploy order for additive schema fields
+
+When a release adds a new optional field to a CRD (e.g. `context.spec.displayName`),
+apply components in this order so the apiserver never prunes the new field:
+
+1. **CRDs first** — `kubectl apply -f ./charts/clerum-crds/crds/` (Helm 3 will not
+ do this on `helm upgrade`; see above). Until the CRD declares the field, the
+ apiserver **silently prunes** it on every write and returns 200.
+2. **control-api next** — it carries the read-after-write guard that turns a prune
+ into a `*_crd_outdated` 409 instead of silent data loss, plus the write path.
+3. **control-ui / profile-ui last** — the writers of the field.
+
+The full safe order is **CRD → control-api → control-ui**, not merely "CRD before
+UI": an old control-api against a new CRD still works, but a new UI against an old
+CRD (or `kubectl`/GitOps writes against an old CRD) loses the field with a 200.
+The guard only defends requests that flow through a control-api already carrying
+it — it cannot protect direct apiserver writes, which is why the CRD must land
+first regardless of how the field is written.
+
## Chart options
| Key | Default | Description |