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:
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- world0-protection.yaml
|
||||
@@ -12,7 +12,8 @@
|
||||
# - deleting a PersistentVolume bound to evolution-world0, or changing its reclaim
|
||||
# policy away from Retain once set (set Retain when the volume is bound: the
|
||||
# only StorageClass, local-path, provisions with Delete);
|
||||
# - deleting the aevolution-world0 Argo CD Application or AppProject.
|
||||
# - deleting the aevolution-world0 or aevolution-platform Argo CD Application or
|
||||
# AppProject (the platform app owns this policy and the World0 namespace).
|
||||
# Kubernetes does not run admission policies on policy objects themselves, so
|
||||
# removing this policy is itself the audited break-glass step (cluster-admin).
|
||||
# Apply by hand: kubectl apply -f deploy/kubernetes/platform/admission/
|
||||
@@ -56,7 +57,8 @@ spec:
|
||||
variables.resource in ['persistentvolumeclaims', 'secrets', 'serviceaccounts']
|
||||
- name: world0Delivery
|
||||
expression: >-
|
||||
request.resource.group == 'argoproj.io' && request.name == 'aevolution-world0'
|
||||
request.resource.group == 'argoproj.io' &&
|
||||
request.name in ['aevolution-world0', 'aevolution-platform']
|
||||
validations:
|
||||
- expression: >-
|
||||
variables.breakGlass || request.operation != 'DELETE' ||
|
||||
|
||||
Reference in New Issue
Block a user