-
Notifications
You must be signed in to change notification settings - Fork 84
/
addons-crossplane-helm.yaml
79 lines (78 loc) · 2.75 KB
/
addons-crossplane-helm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: addons-crossplane-helm
spec:
syncPolicy:
preserveResourcesOnDeletion: true
generators:
- merge:
mergeKeys: [server]
generators:
- clusters:
values:
addonChart: crossplane-helm
addonChartNamespace: crossplane-system
# anything not staging or prod use this version
addonChartVersion: 1.1.0
addonChartRepository: https://gitops-bridge-dev.github.io/gitops-bridge-helm-charts
selector:
matchExpressions:
- key: akuity.io/argo-cd-cluster-name
operator: NotIn
values: [in-cluster]
- key: enable_crossplane_helm_provider
operator: In
values: ['true']
- clusters:
selector:
matchLabels:
environment: staging
values:
addonChartVersion: 1.1.0
- clusters:
selector:
matchLabels:
environment: prod
values:
addonChartVersion: 1.1.0
template:
metadata:
name: addon-{{name}}-{{values.addonChart}}
spec:
project: default
sources:
- repoURL: '{{metadata.annotations.addons_repo_url}}'
targetRevision: '{{metadata.annotations.addons_repo_revision}}'
ref: values
- chart: '{{values.addonChart}}'
repoURL: '{{values.addonChartRepository}}'
targetRevision: '{{values.addonChartVersion}}'
helm:
releaseName: '{{values.addonChart}}'
ignoreMissingValueFiles: true
valueFiles:
- $values/{{metadata.annotations.addons_repo_basepath}}environments/default/addons/{{values.addonChart}}/values.yaml
- $values/{{metadata.annotations.addons_repo_basepath}}environments/{{metadata.labels.environment}}/addons/{{values.addonChart}}/values.yaml
- $values/{{metadata.annotations.addons_repo_basepath}}environments/clusters/{{name}}/addons/{{values.addonChart}}/values.yaml
values: |
provider:
package:
registry: xpkg.upbound.io/crossplane-contrib/provider-helm
version: "v0.17.0"
# fileParameters:
# - name:
# path:
# parameters
# valuesObject
destination:
namespace: '{{values.addonChartNamespace}}'
name: '{{name}}'
syncPolicy:
retry:
limit: 100
automated: {}
syncOptions:
- CreateNamespace=true
- ServerSideApply=true # Big CRDs.