Skip to content

Commit f3a469b

Browse files
committed
feat(argocd): Implement App of Apps Pattern
Introduced the ArgoCD app of applications pattern to improve the management and scalability of ArgoCD configurations: - Added argocd.yaml to define the main ArgoCD application. - Added argo-applications.yaml to manage nested applications. - Updated kustomization.yaml to include argo-applications.yaml in the resources list.
1 parent 61166f0 commit f3a469b

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

argocd-applications/do/argocd.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: argocd
5+
namespace: argocd
6+
spec:
7+
project: default
8+
source:
9+
repoURL: https://github.com/metacpan/metacpan-k8s
10+
targetRevision: main
11+
path: platform/argocd/do
12+
destination:
13+
server: "https://kubernetes.default.svc"
14+
namespace: argocd
15+
syncPolicy:
16+
automated:
17+
prune: true
18+
selfHeal: false
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: argocd-applications
5+
namespace: argocd
6+
spec:
7+
project: default
8+
source:
9+
repoURL: https://github.com/metacpan/metacpan-k8s
10+
targetRevision: main
11+
path: "/argocd-applications/do/"
12+
destination:
13+
server: "https://kubernetes.default.svc"
14+
namespace: argocd
15+
syncPolicy:
16+
automated:
17+
prune: true
18+
selfHeal: false

platform/argocd/do/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ resources:
66
- ./github_auth_secret.yaml
77
- ./../patches/
88
- ./ingress.yaml
9-
9+
- ./argo-applications.yaml

0 commit comments

Comments
 (0)