1
0
Fork 0

feat(apps): add app-of-apps and app-of-projects

This commit is contained in:
Vojtěch Mareš 2024-05-11 14:06:46 +02:00
parent 9a3e8fca08
commit ce077f7f3a
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
2 changed files with 44 additions and 0 deletions

22
apps/cd/app-of-apps.yaml Normal file
View file

@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-of-apps
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
project: cd
syncPolicy:
automated:
prune: true
selfHeal: true
source:
path: apps/
directory:
recurse: true
repoURL: git@gitlab.mareshq.com:hq/cthulhunetes/gitops.git
targetRevision: HEAD
destination:
server: "https://kubernetes.default.svc"
namespace: default

View file

@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-of-projects
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-10"
spec:
project: cd
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
source:
path: projects/
repoURL: git@gitlab.mareshq.com:hq/cthulhunetes/gitops.git
targetRevision: HEAD
destination:
server: "https://kubernetes.default.svc"
namespace: default