Packer.Images/ansible/roles/firstboot/files/ansible_payload/templates/applicationset.j2
Danny Bessems 042b9eb36f
All checks were successful
continuous-integration/drone/push Build is passing
Fix filename/keyname;Disable jinja trim_blocks
2022-08-29 22:43:26 +02:00

29 lines
804 B
Django/Jinja

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: {{ _template.name }}
namespace: {{ _template.namespace }}
spec:
generators:
- git:
repoURL: https://git.{{ vapp['metacluster.fqdn'] }}/mc/ArgoCD.Config.git
revision: HEAD
directories:
- path: metacluster-applicationset/*
template:
metadata:
name: {% raw %}'{{ path.basename }}'{% endraw +%}
spec:
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
source:
repoURL: https://git.{{ vapp['metacluster.fqdn'] }}/mc/ArgoCD.Config.git
targetRevision: HEAD
path: {% raw %}'{{ path }}'{% endraw +%}
destination:
server: https://{{ vapp['guestinfo.ipaddress'] }}:6443
namespace: default