baseline/_templates/argo_base.libsonnet

39 lines
754 B
Text
Raw Normal View History

{
name:: error "name must be defined",
namespace:: $.name,
syncOptions:: ["CreateNamespace=true"],
2022-04-07 06:25:32 +00:00
retryLimit:: 5,
sync_wave:: 0,
apiVersion: "argoproj.io/v1alpha1",
kind: "Application",
metadata: {
name: $.name,
namespace: "argocd",
annotations: { "argocd.argoproj.io/sync-wave": std.toString($.sync_wave) },
2022-04-11 20:07:58 +00:00
finalizers: ["resources-finalizer.argocd.argoproj.io"],
},
spec: {
project: "baseline",
destination: {
server: "https://kubernetes.default.svc",
namespace: $.namespace,
},
syncPolicy: {
automated: {
selfHeal: true,
prune: true,
},
2022-04-07 06:25:32 +00:00
retry: {
limit: $.retryLimit,
backoff: {
duration: "5s",
factor: 2,
maxDuration: "5m",
},
},
syncOptions: $.syncOptions,
}
}
}