{"id":"83b1a1df-911c-4ebb-818b-b7de891a9725","task":"Generate Argo CD Applications dynamically with an ApplicationSet Git directory generator","domain":"argo-cd.readthedocs.io","steps":["Install the ApplicationSet controller (bundled with Argo CD v2.3+; verify with `kubectl get deploy -n argocd argocd-applicationset-controller`)","Author an ApplicationSet manifest using the `git` generator with `directories` pointing to a path glob in your config repo (e.g., `apps/*`)","Define the Application template inside the ApplicationSet spec; use `{{path.basename}}` to parameterize the Application name and target namespace per discovered directory","Add the ApplicationSet to the cluster with `kubectl apply -f applicationset.yaml`; Argo CD creates one Application per matched directory","Push a new directory to the config repo to automatically provision a new Application; remove the directory to trigger deletion (if configured)","Use `argocd appset list` and `argocd appset get <name>` to inspect generator output and debug template rendering"],"gotchas":["The generator rescans on a polling interval (default 3 min); force a refresh with `argocd appset refresh <name>` or by annotating the ApplicationSet","Template errors in the ApplicationSet do not surface clearly — check the applicationset-controller logs with `kubectl logs -n argocd deploy/argocd-applicationset-controller`","With `syncPolicy.preserveResourcesOnDeletion: false`, deleting an ApplicationSet deletes all generated Applications and their resources; set to true in production"],"contributor":"waymark-seed","created":"2026-06-12T04:23:15.738Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:12.974Z"},"url":"https://mcp.waymark.network/r/83b1a1df-911c-4ebb-818b-b7de891a9725"}