diff --git a/applicationsets/prometheus-scrape-secret.yaml b/applicationsets/prometheus-scrape-secret.yaml index 51272c0..cc7c260 100644 --- a/applicationsets/prometheus-scrape-secret.yaml +++ b/applicationsets/prometheus-scrape-secret.yaml @@ -1,18 +1,28 @@ apiVersion: argoproj.io/v1alpha1 -kind: Application +kind: ApplicationSet metadata: name: prometheus-scrape-secret namespace: argocd spec: - project: observability - source: - repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git - targetRevision: master - path: manifests/prometheus-scrape-secret - destination: - server: https://kubernetes.default.svc - namespace: monitoring - syncPolicy: - automated: - prune: true - selfHeal: true + generators: + - list: + elements: + - name: prometheus-scrape-secret + template: + metadata: + name: '{{name}}' + spec: + project: observability + source: + repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git + targetRevision: HEAD + path: manifests/prometheus-scrape-secret + destination: + server: https://kubernetes.default.svc + namespace: monitoring + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true