Move applicationsets and projects to separate folders

This commit is contained in:
Khue Doan 2021-08-22 17:47:01 +07:00
parent 0095d9a166
commit ecf7a3c9bf
4 changed files with 10 additions and 24 deletions

View File

@ -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}}'

View File

@ -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

View File

@ -0,0 +1,8 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: system
spec:
description: System Project
sourceRepos:
- '*'