From 2b07fdeec7d608fe77b62f3d9a55f9879f58dceb Mon Sep 17 00:00:00 2001 From: TapTap Date: Tue, 13 Oct 2026 19:40:15 +0200 Subject: [PATCH] add application set config for argocd --- argocd/applicationset.yaml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 argocd/applicationset.yaml diff --git a/argocd/applicationset.yaml b/argocd/applicationset.yaml new file mode 100644 index 0000000..aac1ffa --- /dev/null +++ b/argocd/applicationset.yaml @@ -0,0 +1,39 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-cm + namespace: argocd +data: + kustomize.buildOptions: "--enable-helm" +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: cluster + namespace: argocd +spec: + goTemplate: true + goTemplateOptions: ["missingkey=error"] + generators: + - git: + repoURL: https://gitea.tap-tap.win/TapTap/Cluster.git + revision: HEAD + directories: + - path: "*" + template: + metadata: + name: "{{ index .path.segments 0 }}" + namespace: argocd + spec: + project: default + source: + repoURL: https://gitea.tap-tap.win/TapTap/Cluster.git + targetRevision: HEAD + path: "{{ .path.path }}" + destination: + server: https://kubernetes.default.svc + namespace: default + syncPolicy: + syncOptions: + - CreateNamespace=true +