Packer.Images/ansible/roles/firstboot/files/ansible_payload/bootstrap/templates/applicationset.j2
2023-03-31 18:19:13 +02:00

29 lines
732 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: HEAD
directories:
- path: applicationset/*
template:
metadata:
name: {% raw %}'{{ path.basename }}'{% endraw +%}
spec:
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
source:
repoURL: {{ _template.repository.url }}
targetRevision: HEAD
path: {% raw %}'{{ path }}'{% endraw +%}
destination:
server: {{ _template.cluster.name }}
namespace: default