From ecf7a3c9bfc182d233b1026fcbb893c6bd5924fb Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 22 Aug 2021 17:47:01 +0700 Subject: [PATCH] Move applicationsets and projects to separate folders --- system/argocd/applicationsets.yaml | 23 ------------------- .../system.yaml} | 0 system/argocd/kustomization.yaml | 3 ++- system/argocd/projects/system.yaml | 8 +++++++ 4 files changed, 10 insertions(+), 24 deletions(-) delete mode 100644 system/argocd/applicationsets.yaml rename system/argocd/{system-applicationset.yaml => applicationsets/system.yaml} (100%) create mode 100644 system/argocd/projects/system.yaml diff --git a/system/argocd/applicationsets.yaml b/system/argocd/applicationsets.yaml deleted file mode 100644 index 585c31ca..00000000 --- a/system/argocd/applicationsets.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - name: system-applicationset -spec: - generators: - - git: - repoURL: https://github.com/khuedoan/homelab.git - revision: master - directories: - - path: examples/git-generator-directory/cluster-addons/* - template: - metadata: - name: '{{path.basename}}' - spec: - project: default - source: - repoURL: https://github.com/argoproj-labs/applicationset.git - targetRevision: HEAD - path: '{{path}}' - destination: - server: https://kubernetes.default.svc - namespace: '{{path.basename}}' diff --git a/system/argocd/system-applicationset.yaml b/system/argocd/applicationsets/system.yaml similarity index 100% rename from system/argocd/system-applicationset.yaml rename to system/argocd/applicationsets/system.yaml diff --git a/system/argocd/kustomization.yaml b/system/argocd/kustomization.yaml index fdd54842..ee72ed8d 100644 --- a/system/argocd/kustomization.yaml +++ b/system/argocd/kustomization.yaml @@ -6,6 +6,7 @@ resources: - https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml - https://raw.githubusercontent.com/argoproj-labs/applicationset/stable/manifests/install.yaml - ingress.yaml -- system-applicationset.yaml +- projects/system.yaml +- applicationsets/system.yaml namespace: argocd diff --git a/system/argocd/projects/system.yaml b/system/argocd/projects/system.yaml new file mode 100644 index 00000000..d63e4b21 --- /dev/null +++ b/system/argocd/projects/system.yaml @@ -0,0 +1,8 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: system +spec: + description: System Project + sourceRepos: + - '*'