Skip to content

Commit 31569e0

Browse files
committed
Update root-appset.yaml
1 parent 2599e82 commit 31569e0

1 file changed

Lines changed: 12 additions & 19 deletions

File tree

infrastructure/root-appset.yaml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,26 @@ spec:
99
repoURL: https://github.com/mitchross/k3s-argocd-proxmox.git
1010
revision: HEAD
1111
directories:
12-
# Discover every component directory in the main folders
13-
- path: infrastructure/*
12+
# Discover each individual component/app directory
13+
- path: infrastructure/controllers/*
14+
- path: infrastructure/crds
15+
- path: infrastructure/database/*
16+
- path: infrastructure/networking/*
17+
- path: infrastructure/storage/*
1418
- path: monitoring/*
15-
- path: my-apps/*
19+
- path: my-apps/*/*
1620
template:
1721
metadata:
18-
# Create a unique name for each application
19-
name: '{{path.basename}}'
22+
# Create a unique name for each application, e.g., "controllers-argocd"
23+
name: '{{path.path | replace "/" "-" | lower}}'
2024
namespace: argocd
2125
annotations:
2226
# Keep notifications for degraded or failed syncs
2327
notifications.argoproj.io/subscribe.on-health-degraded.slack: app-alerts
2428
notifications.argoproj.io/subscribe.on-sync-failed.slack: app-alerts
2529
spec:
26-
# Set project based on the top-level folder
27-
project: '{{path[0]}}'
30+
# Set project based on the top-level folder (infrastructure, monitoring, or my-apps)
31+
project: '{{path.path | split "/" | first}}'
2832
source:
2933
repoURL: https://github.com/mitchross/k3s-argocd-proxmox.git
3034
targetRevision: HEAD
@@ -34,7 +38,7 @@ spec:
3438
name: kustomize-build-with-helm
3539
destination:
3640
server: https://kubernetes.default.svc
37-
# Deploy the app to a namespace matching its name
41+
# Deploy the app to a namespace matching its directory name, e.g., "argocd", "plex"
3842
namespace: '{{path.basename}}'
3943
syncPolicy:
4044
automated:
@@ -66,17 +70,6 @@ spec:
6670
jsonPointers:
6771
- /spec/parentRefs/0/group
6872
- /spec/parentRefs/0/kind
69-
- /spec/rules/0/backendRefs/0/group
70-
- /spec/rules/0/backendRefs/0/kind
71-
- /spec/rules/0/backendRefs/0/weight
72-
- group: gateway.networking.k8s.io
73-
kind: TCPRoute
74-
jsonPointers:
75-
- /spec/parentRefs/0/group
76-
- /spec/parentRefs/0/kind
77-
- /spec/rules/0/backendRefs/0/group
78-
- /spec/rules/0/backendRefs/0/kind
79-
- /spec/rules/0/backendRefs/0/weight
8073
- group: apiextensions.k8s.io
8174
kind: CustomResourceDefinition
8275
jsonPointers:

0 commit comments

Comments
 (0)