Packer.Images/ansible/roles/firstboot/files/ansible_payload/bootstrap/templates/applicationset.j2

29 lines
732 B
Plaintext
Raw Normal View History

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