Skip to content

Commit eaa6cbe

Browse files
authored
Adding new example of cluster-generator applicationSet
1 parent 138ed95 commit eaa6cbe

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: ApplicationSet
3+
metadata:
4+
name: cluster-generator
5+
namespace: argocd
6+
spec:
7+
generators:
8+
- clusters:
9+
selector:
10+
matchExpressions:
11+
- key: argocd.argoproj.io/kubernetes-version # the label argocd.argoproj.io/auto-label-cluster-info needs to be set to true on the cluster secret.
12+
operator: In
13+
values:
14+
- "1.28"
15+
- "1.31"
16+
template:
17+
metadata:
18+
name: '{{name}}-application'
19+
spec:
20+
project: "default"
21+
source:
22+
repoURL: https://github.com/devopshobbies/argocd-tutorial.git
23+
targetRevision: main
24+
path: v03-argocd-applications/helm/nginx
25+
destination:
26+
server: '{{server}}'
27+
namespace: prod
28+
syncPolicy:
29+
automated: {}
30+
syncOptions:
31+
- CreateNamespace=true

0 commit comments

Comments
 (0)