25 lines
619 B
Django/Jinja
25 lines
619 B
Django/Jinja
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ app.name }}
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: {{ argocd_apps_repo_url }}
|
|
targetRevision: {{ argocd_apps_target_revision | default("HEAD") }}
|
|
path: argocd/{{ app.name }}
|
|
directory:
|
|
recurse: true
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: {{ argocd_apps_target_namespace | default(app.name) }}
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|