feat(sets): Moved ApplicationSets out into their own folder

This commit is contained in:
Vegard Hagen
2023-07-07 23:42:14 +02:00
parent ad74c53fdf
commit 9832d5fc3c
7 changed files with 25 additions and 8 deletions
+51
View File
@@ -0,0 +1,51 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: applications
namespace: argocd
spec:
sourceNamespaces:
- '*'
sourceRepos:
- 'https://github.com/vehagn/*'
destinations:
- namespace: 'argocd'
server: '*'
- namespace: 'arr'
server: '*'
- namespace: 'home-assistant'
server: '*'
- namespace: 'plex'
server: '*'
- namespace: 'stonegarden'
server: '*'
- namespace: 'whoami'
server: '*'
- namespace: 'test'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: applications
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: app-of-apps
source:
path: apps
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
destination:
namespace: argocd
name: in-cluster
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true
+52
View File
@@ -0,0 +1,52 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: infrastructure
namespace: argocd
spec:
sourceRepos:
- 'https://github.com/vehagn/homelab'
- 'https://prometheus-community.github.io/helm-charts'
- 'https://helm.traefik.io/*'
- 'https://helm.cilium.io/*'
destinations:
- namespace: 'argocd'
server: '*'
- namespace: 'cert-manager'
server: '*'
- namespace: 'kubernetes-dashboard'
server: '*'
- namespace: 'metallb-system'
server: '*'
- namespace: 'monitoring'
server: '*'
- namespace: 'traefik-system'
server: '*'
- namespace: 'kube-system'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: infrastructure
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: app-of-apps
source:
path: infra
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
destination:
namespace: argocd
name: in-cluster
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true
+8
View File
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd
resources:
- project.yaml
- infrastructure.yaml
- applications.yaml
+14
View File
@@ -0,0 +1,14 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: app-of-apps
namespace: argocd
spec:
sourceRepos:
- 'https://github.com/vehagn/*'
destinations:
- namespace: 'argocd'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'