Skip to content

Commit

Permalink
Merge pull request #234 from rackerlabs/common-argocd
Browse files Browse the repository at this point in the history
feat: allow one ArgoCD to manage multiple clusters
  • Loading branch information
cardoe authored Aug 22, 2024
2 parents 1574445 + d2b5ab3 commit 9120c3c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions apps/cluster-setup.yaml → apps/app-of-apps.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster-setup
name: app-of-apps
spec:
syncPolicy:
preserveResourcesOnDeletion: true
Expand All @@ -12,9 +12,10 @@ spec:
selector:
matchLabels:
argocd.argoproj.io/secret-type: cluster
understack.rackspace.com/argocd: enabled
template:
metadata:
name: '{{.name}}-cluster-setup'
name: '{{.name}}-app-of-apps'
spec:
project: default
source:
Expand Down
1 change: 1 addition & 0 deletions apps/appsets/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
selector:
matchLabels:
argocd.argoproj.io/secret-type: cluster
understack.rackspace.com/argocd: enabled
template:
metadata:
name: '{{.name}}-argocd'
Expand Down
2 changes: 1 addition & 1 deletion docs/deploy-guide/gitops-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Finally run the following to have ArgoCD deploy the system:

```bash
# from your understack checkout
kubectl apply -f apps/cluster-setup.yaml
kubectl apply -f apps/app-of-apps.yaml
```

At this point ArgoCD will work to deploy Understack.
Expand Down
1 change: 1 addition & 0 deletions scripts/gitops-secrets-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ metadata:
namespace: argocd
labels:
argocd.argoproj.io/secret-type: cluster
understack.rackspace.com/argocd: enabled
annotations:
uc_repo_git_url: "https://github.com/rackerlabs/understack.git"
uc_repo_ref: "HEAD"
Expand Down

0 comments on commit 9120c3c

Please sign in to comment.