# ===================================================================== # Root "app of apps": punta a gitops/clusters/idc/ nel repo. Grazie a # directory.recurse=true, scopre automaticamente ogni application.yaml # trovato dentro namespace-A/, namespace-B/, namespace-C/ e li applica # come proprie Application figlie. # ===================================================================== apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: root-3ns namespace: argocd finalizers: - resources-finalizer.argocd.argoproj.io spec: project: gitops-3ns source: repoURL: "https://github.com//gitops-repo.git" targetRevision: main path: gitops/clusters/idc directory: recurse: true destination: server: "https://kubernetes.default.svc" namespace: argocd syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true - ServerSideApply=true retry: limit: 5 backoff: duration: 10s factor: 2 maxDuration: 3m