Danny Bessems
56a33134a0
All checks were successful
continuous-integration/drone/push Build is passing
32 lines
937 B
Django/Jinja
32 lines
937 B
Django/Jinja
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: {{ _template.application.name }}
|
|
namespace: {{ _template.application.namespace }}
|
|
spec:
|
|
generators:
|
|
- git:
|
|
repoURL: {{ _template.repository.url }}
|
|
revision: {{ _template.repository.revision }}
|
|
directories:
|
|
- path: charts/*/*
|
|
template:
|
|
metadata:
|
|
name: application-{% raw %}{{ path.basename }}{% endraw +%}
|
|
spec:
|
|
project: default
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
sources:
|
|
- repoURL: {{ _template.repository.url }}
|
|
targetRevision: {{ _template.repository.revision }}
|
|
path: {% raw %}'{{ path }}'{% endraw +%}
|
|
helm:
|
|
valueFiles:
|
|
- /values/{% raw %}{{ path.basename }}{% endraw %}/values.yaml
|
|
destination:
|
|
server: {{ _template.cluster.url }}
|
|
namespace: {% raw %}'{{ path[1] }}'{% endraw +%}
|