Files
Ruben Hensen 04a2a2aed2 gatus: let Argo CD prune old resources
configMapGenerator gives every config change a new gatus-config-<hash> ConfigMap, and without prune the old one stayed behind and left the app OutOfSync.
2026-10-23 23:42:58 +02:00

25 lines
589 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gatus-folder
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/rubenhensen/k8scd.git
targetRevision: HEAD
path: gatus
destination:
server: https://kubernetes.default.svc
namespace: gatus
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
# Each config change generates a new gatus-config-<hash> ConfigMap;
# prune removes the old one.
prune: true
selfHeal: true