apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: flannel namespace: argocd spec: ignoreApplicationDifferences: - jsonPointers: - /spec/syncPolicy goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - list: elements: - environment: production namespace: kube-flannel overlay: production template: metadata: name: 'flannel-{{ .environment }}' labels: app.kubernetes.io/managed-by: argocd app.kubernetes.io/name: flannel spec: project: default source: repoURL: https://git.olb42.com/olb42/flannel.git targetRevision: main path: 'manifest/overlays/{{ .overlay }}' kustomize: commonAnnotationsEnvsubst: true commonAnnotations: app-source: ${ARGOCD_APP_SOURCE_REPO_URL} app-revision: ${ARGOCD_APP_SOURCE_TARGET_REVISION} destination: server: https://kubernetes.default.svc namespace: '{{ .namespace }}' ignoreDifferences: - group: "" kind: PersistentVolume name: app-data jsonPointers: - /spec/claimRef/resourceVersion - /spec/claimRef/uid syncPolicy: automated: prune: true selfHeal: true enabled: true syncOptions: - CreateNamespace=false - ApplyOutOfSyncOnly=false - ServerSideApply=true