apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: apps-production namespace: argocd spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - git: repoURL: ssh://git@gitea-ssh.platform.svc:2222/julia/homelab.git revision: main directories: - path: apps/*/k8s/overlays/production template: metadata: name: "{{ index .path.segments 1 }}-production" spec: project: default source: repoURL: ssh://git@gitea-ssh.platform.svc:2222/julia/homelab.git targetRevision: main path: "{{ .path.path }}" destination: server: https://kubernetes.default.svc namespace: apps syncPolicy: automated: prune: true selfHeal: true