File tree 4 files changed +145
-0
lines changed
v10-argocd-applicationSet-2
4 files changed +145
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : argoproj.io/v1alpha1
2
+ kind : ApplicationSet
3
+ metadata :
4
+ name : matrix-generator-ex1
5
+ spec :
6
+ generators :
7
+ - matrix :
8
+ generators :
9
+ - git :
10
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
11
+ revision : main
12
+ directories :
13
+ - path : v09-argocd-applicationSet-1/git-generator/resources/*
14
+ - clusters : {}
15
+ template :
16
+ metadata :
17
+ name : ' {{path.basename}}-{{name}}'
18
+ spec :
19
+ project : default
20
+ source :
21
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
22
+ targetRevision : main
23
+ path : ' {{path}}'
24
+ destination :
25
+ server : ' {{server}}'
26
+ namespace : ' {{metadata.labels.environment}}'
27
+ syncPolicy :
28
+ automated : {}
29
+ syncOptions :
30
+ - CreateNamespace=true
Original file line number Diff line number Diff line change
1
+ apiVersion : argoproj.io/v1alpha1
2
+ kind : ApplicationSet
3
+ metadata :
4
+ name : matrix-generator-ex2
5
+ spec :
6
+ generators :
7
+ - matrix :
8
+ generators :
9
+ - git :
10
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
11
+ revision : main
12
+ directories :
13
+ - path : v09-argocd-applicationSet-1/git-generator/resources/*
14
+ - list :
15
+ elements :
16
+ - environment : pre-staging
17
+ server : https://kubernetes.default.svc
18
+ - environment : staging
19
+ server : https://192.168.226.93:6443
20
+ template :
21
+ metadata :
22
+ name : ' {{path.basename}}-{{environment}}'
23
+ spec :
24
+ project : default
25
+ source :
26
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
27
+ targetRevision : main
28
+ path : ' {{path}}'
29
+ destination :
30
+ server : ' {{server}}'
31
+ namespace : ' {{environment}}'
32
+ syncPolicy :
33
+ automated : {}
34
+ syncOptions :
35
+ - CreateNamespace=true
Original file line number Diff line number Diff line change
1
+ apiVersion : argoproj.io/v1alpha1
2
+ kind : ApplicationSet
3
+ metadata :
4
+ name : matrix-generator-ex3
5
+ spec :
6
+ generators :
7
+ - matrix :
8
+ generators :
9
+ - git :
10
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
11
+ revision : main
12
+ files :
13
+ - path : v09-argocd-applicationSet-1/git-generator/cluster-config/**/config.json
14
+ - clusters :
15
+ selector :
16
+ matchLabels :
17
+ argocd.argoproj.io/secret-type : cluster
18
+ environment : ' {{cluster.name}}'
19
+ template :
20
+ metadata :
21
+ name : ' {{name}}-application'
22
+ spec :
23
+ project : default
24
+ source :
25
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
26
+ targetRevision : main
27
+ path : ' {{cluster.path}}'
28
+ destination :
29
+ server : ' {{server}}'
30
+ namespace : ' {{metadata.labels.environment}}'
31
+ syncPolicy :
32
+ automated : {}
33
+ syncOptions :
34
+ - CreateNamespace=true
Original file line number Diff line number Diff line change
1
+ apiVersion : argoproj.io/v1alpha1
2
+ kind : ApplicationSet
3
+ metadata :
4
+ name : merge-generator-ex1
5
+ spec :
6
+ generators :
7
+ - merge :
8
+ mergeKeys :
9
+ - server
10
+ generators :
11
+ - clusters :
12
+ values :
13
+ tag : ' 1.23'
14
+ replicas : ' 1'
15
+ - clusters :
16
+ selector :
17
+ matchLabels :
18
+ environment : ' staging'
19
+ values :
20
+ tag : ' 1.24'
21
+ - list :
22
+ elements :
23
+ - server : https://kubernetes.default.svc
24
+ values.replicas : ' 3'
25
+ template :
26
+ metadata :
27
+ name : ' {{name}}-application'
28
+ spec :
29
+ project : default
30
+ source :
31
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
32
+ targetRevision : main
33
+ path : v03-argocd-applications/helm/nginx
34
+ helm :
35
+ parameters :
36
+ - name : " image.tag"
37
+ value : ' {{values.tag}}'
38
+ - name : " replicaCount"
39
+ value : ' {{values.replicas}}'
40
+ destination :
41
+ server : ' {{server}}'
42
+ namespace : ' {{metadata.labels.environment}}'
43
+ syncPolicy :
44
+ automated : {}
45
+ syncOptions :
46
+ - CreateNamespace=true
You can’t perform that action at this time.
0 commit comments