baseline/_templates/argo_base.template

28 lines
477 B
Text
Raw Normal View History

# 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,
}
}
}