-
Notifications
You must be signed in to change notification settings - Fork 87
/
addons-aws-fluentbit-fargate-appset.yaml
69 lines (68 loc) · 2.57 KB
/
addons-aws-fluentbit-fargate-appset.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
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: addons-aws-fargate-fluentbit
spec:
syncPolicy:
preserveResourcesOnDeletion: true
generators:
- merge:
mergeKeys: [server]
generators:
- clusters:
values:
addonChart: aws-fargate-fluentbit
# anything not staging or prod use this version
addonChartVersion: 1.0.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_fargate_fluentbit
operator: In
values: ['true']
- clusters:
selector:
matchLabels:
environment: staging
values:
addonChartVersion: 1.0.0
- clusters:
selector:
matchLabels:
environment: prod
values:
addonChartVersion: 1.0.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: |
region: {{metadata.annotations.aws_region}}
log_group_name: {{metadata.annotations.fargate_fluentbit_log_group_name}}
log_stream_prefix: {{metadata.annotations.fargate_fluentbit_log_stream_prefix}}
destination:
name: '{{name}}'
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
- ServerSideApply=true # Big CRDs.