File tree 1 file changed +76
-0
lines changed
bootstrap/control-plane/addons/aws
1 file changed +76
-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 : addons-aws-argocd
5
+ spec :
6
+ syncPolicy :
7
+ preserveResourcesOnDeletion : true
8
+ generators :
9
+ - merge :
10
+ mergeKeys :
11
+ - server
12
+ generators :
13
+ - clusters :
14
+ values :
15
+ addonChart : argo-cd
16
+ # anything not staging or prod use this version
17
+ addonChartVersion : ' 5.38.0'
18
+ addonChartRepository : https://argoproj.github.io/argo-helm
19
+ selector :
20
+ matchExpressions :
21
+ - key : akuity.io/argo-cd-cluster-name
22
+ operator : NotIn
23
+ values :
24
+ - in-cluster
25
+ - key : aws_enable_argocd
26
+ operator : In
27
+ values :
28
+ - ' true'
29
+ - clusters :
30
+ selector :
31
+ matchLabels :
32
+ environment : staging
33
+ values :
34
+ addonChartVersion : ' 5.38.0'
35
+ - clusters :
36
+ selector :
37
+ matchLabels :
38
+ environment : prod
39
+ values :
40
+ addonChartVersion : ' 5.38.0'
41
+ template :
42
+ metadata :
43
+ name : ' addon-{{name}}-aws-{{values.addonChart}}'
44
+ spec :
45
+ project : default
46
+ sources :
47
+ - repoURL : ' https://github.com/csantanapr/gitops-control-plane'
48
+ targetRevision : HEAD
49
+ ref : values
50
+ - chart : ' {{values.addonChart}}'
51
+ repoURL : ' {{values.addonChartRepository}}'
52
+ targetRevision : ' {{values.addonChartVersion}}'
53
+ helm :
54
+ releaseName : ' {{values.addonChart}}'
55
+ ignoreMissingValueFiles : true
56
+ valueFiles :
57
+ - $values/charts/addons/{{values.addonChart}}/values.yaml
58
+ - $values/environments/{{metadata.labels.environment}}/addons/{{values.addonChart}}/values.yaml
59
+ - $values/clusters/{{name}}/addons/{{values.addonChart}}/values.yaml
60
+ values : |
61
+ controller:
62
+ serviceAccount:
63
+ annotations:
64
+ eks.amazonaws.com/role-arn: {{metadata.annotations.metadata_aws_argocd_iam_role_arn}}
65
+ server:
66
+ serviceAccount:
67
+ annotations:
68
+ eks.amazonaws.com/role-arn: {{metadata.annotations.metadata_aws_argocd_iam_role_arn}}
69
+ destination :
70
+ namespace : ' {{metadata.annotations.metadata_aws_argocd_namespace}}'
71
+ name : ' {{name}}'
72
+ syncPolicy :
73
+ automated : {}
74
+ syncOptions :
75
+ - CreateNamespace=true
76
+ - ServerSideApply=true # Big CRDs.
You can’t perform that action at this time.
0 commit comments