fix(projects): Moving definition of AppProjects

This commit is contained in:
Vegard Hagen
2023-07-09 13:30:56 +02:00
parent 94a29703d9
commit bf4ea4aef1
6 changed files with 79 additions and 59 deletions

10
apps/kustomization.yaml Normal file
View File

@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd
commonLabels:
dev.stonegarden: app-management
app.kubernetes.io/managed-by: argocd
resources:
- project.yaml
- application-set.yaml

30
apps/project.yaml Normal file
View File

@@ -0,0 +1,30 @@
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: 'blog'
server: '*'
- namespace: 'home-assistant'
server: '*'
- namespace: 'plex'
server: '*'
- namespace: 'stonegarden'
server: '*'
- namespace: 'whoami'
server: '*'
- namespace: 'test'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'

10
infra/kustomization.yaml Normal file
View File

@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd
commonLabels:
dev.stonegarden: infra-management
app.kubernetes.io/managed-by: argocd
resources:
- project.yaml
- application-set.yaml

29
infra/project.yaml Normal file
View File

@@ -0,0 +1,29 @@
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: '*'

View File

@@ -1,33 +1,4 @@
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

View File

@@ -1,34 +1,4 @@
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