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:
dingo
2026-09-29 17:05:34 -04:00
co-authored by Claude Opus 5.5
parent 8d594f28af
commit 7318d82a14
20 changed files with 505 additions and 223 deletions
+26
View File
@@ -0,0 +1,26 @@
# M8.2/M8.3 platform Application (ADR-0069 amendment). Self-heal restores drift
# (a deleted quota, policy or label comes back); prune is off and every object
# carries Delete=false, so removing a file from Git or deleting this Application
# never deletes a namespace, claim, class or policy. No cascade finalizer. The
# World0 admission policy also denies deleting this Application and its project.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: aevolution-platform
namespace: argocd
spec:
project: aevolution-platform
source:
repoURL: https://git.aeternalisgames.com/dingo/AEvolution.git
targetRevision: main
path: deploy/kubernetes/platform/cluster
destination:
server: https://kubernetes.default.svc
namespace: evolution-dev
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- FailOnSharedResource=true
- ServerSideApply=true
+33
View File
@@ -0,0 +1,33 @@
# M8.2/M8.3 platform project (ADR-0069 amendment). Bootstrap once by hand; Argo CD
# cannot create its own first project: kubectl apply -f deploy/argocd/platform/
# Only the three AEvolution namespaces, and only the cluster kinds the platform
# layer owns. Workload projects (aevolution-dev/-stage/-world0) stay separate.
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: aevolution-platform
namespace: argocd
spec:
description: AEvolution platform layer (namespaces, guardrails, storage, World0 protection)
sourceRepos:
- https://git.aeternalisgames.com/dingo/AEvolution.git
destinations:
- server: https://kubernetes.default.svc
namespace: evolution-dev
- server: https://kubernetes.default.svc
namespace: evolution-stage
- server: https://kubernetes.default.svc
namespace: evolution-world0
clusterResourceWhitelist:
- {group: "", kind: Namespace}
- {group: storage.k8s.io, kind: StorageClass}
- {group: admissionregistration.k8s.io, kind: ValidatingAdmissionPolicy}
- {group: admissionregistration.k8s.io, kind: ValidatingAdmissionPolicyBinding}
namespaceResourceWhitelist:
- {group: "", kind: ResourceQuota}
- {group: "", kind: LimitRange}
- {group: "", kind: ServiceAccount}
- {group: "", kind: PersistentVolumeClaim}
- {group: networking.k8s.io, kind: NetworkPolicy}
orphanedResources:
warn: true