Deliver the platform layer and store Jobs through Argo CD
At the maintainer's request everything but Secrets and the store node label now goes through Argo CD. aevolution-platform syncs one bundle (World0 admission policy, Retain storage class, each environment's namespace, guardrails, service accounts and object claim) with self-heal, no prune and Prune=false,Delete=false on every object; the admission policy also protects the platform app and project. Store Jobs become kustomize components used as PreSync (migrate) and PostSync (check-store) hooks per environment, and the policy check refuses any unresolved marker in a path an Application syncs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -104,3 +104,29 @@ never touches platform objects or Secrets, and dry-runs unless `--execute` is gi
|
||||
or cluster-admins.
|
||||
- **Namespaces created by Argo `CreateNamespace`.** A prune or cascade could then
|
||||
remove them.
|
||||
|
||||
## Amendment: platform delivered by Argo CD (2026-09-29)
|
||||
The maintainer prefers that every deployment and configuration goes through Argo
|
||||
CD. The platform layer is therefore an Argo Application, `aevolution-platform`
|
||||
(`deploy/argocd/platform`), no longer a hand-applied layer. The original concern,
|
||||
that a sync, prune or cascade could delete namespaces and durable objects, is met
|
||||
differently:
|
||||
- **Never prune.** The Application self-heals but never prunes.
|
||||
- **Protected objects.** Every object in the bundle carries
|
||||
`argocd.argoproj.io/sync-options: Prune=false,Delete=false`, so neither a Git
|
||||
removal nor deleting the Application deletes it.
|
||||
- **No cascade.** There is no cascade finalizer.
|
||||
- **Protected by admission.** The World0 admission policy also denies deleting the
|
||||
`aevolution-platform` Application and AppProject.
|
||||
- **Scoped project.** Its project may target only the three AEvolution namespaces,
|
||||
and only four cluster kinds: Namespace, StorageClass, ValidatingAdmissionPolicy
|
||||
and its binding.
|
||||
|
||||
Self-heal adds a protection the hand-applied layer lacked: drift, such as a
|
||||
deleted quota or label, is restored. The admission policy itself is still not
|
||||
subject to admission, so a policy change is a reviewed Git change.
|
||||
|
||||
What stays outside Argo:
|
||||
- Secrets, until a secret manager is chosen (docs/BACKLOG.md);
|
||||
- the store node label;
|
||||
- the one-time bootstrap of the platform project and Application.
|
||||
|
||||
Reference in New Issue
Block a user