# vim:ft=jsonnet: { name:: error "name must be defined", namespace:: $.name, syncOptions:: ["CreateNamespace=true"], apiVersion: "argoproj.io/v1alpha1", kind: "Application", metadata: { name: $.name, namespace: "argocd", }, spec: { project: "baseline", destination: { server: "https://kubernetes.default.svc", namespace: $.namespace, }, syncPolicy: { automated: { selfHeal: true, prune: true, }, syncOptions: $.syncOptions, } } }