2022-08-28 18:10:08 +00:00
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
|
|
kind: ApplicationSet
|
|
|
|
metadata:
|
2023-03-31 16:19:13 +00:00
|
|
|
name: {{ _template.application.name }}
|
|
|
|
namespace: {{ _template.application.namespace }}
|
2022-08-28 18:10:08 +00:00
|
|
|
spec:
|
|
|
|
generators:
|
|
|
|
- git:
|
2023-03-31 16:19:13 +00:00
|
|
|
repoURL: {{ _template.repository.url }}
|
2023-04-04 15:22:39 +00:00
|
|
|
revision: {{ _template.repository.revision }}
|
2022-08-28 18:10:08 +00:00
|
|
|
directories:
|
2023-04-04 15:22:39 +00:00
|
|
|
- path: charts/*/*
|
2022-08-28 18:10:08 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
2023-04-04 15:22:39 +00:00
|
|
|
name: application-{% raw %}{{ path.basename }}{% endraw +%}
|
2022-08-28 18:10:08 +00:00
|
|
|
spec:
|
|
|
|
project: default
|
|
|
|
syncPolicy:
|
|
|
|
automated:
|
|
|
|
prune: true
|
|
|
|
selfHeal: true
|
2023-04-06 06:47:37 +00:00
|
|
|
syncOptions:
|
|
|
|
- CreateNamespace=true
|
2023-04-04 15:22:39 +00:00
|
|
|
sources:
|
|
|
|
- repoURL: {{ _template.repository.url }}
|
|
|
|
targetRevision: {{ _template.repository.revision }}
|
2022-08-29 20:43:26 +00:00
|
|
|
path: {% raw %}'{{ path }}'{% endraw +%}
|
2023-04-04 15:22:39 +00:00
|
|
|
helm:
|
|
|
|
valueFiles:
|
|
|
|
- /values/{% raw %}{{ path.basename }}{% endraw %}/values.yaml
|
2022-08-28 18:10:08 +00:00
|
|
|
destination:
|
2023-04-02 20:36:23 +00:00
|
|
|
server: {{ _template.cluster.url }}
|
2023-04-04 15:22:39 +00:00
|
|
|
namespace: {% raw %}'{{ path[1] }}'{% endraw +%}
|