From d4e1df05c0d95d555790f8388a6d3cca85bf5c89 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 7 Apr 2022 08:25:32 +0200 Subject: [PATCH] FEAT: add retry limit --- _templates/argo_base.template | 9 +++++++++ init.yml | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/_templates/argo_base.template b/_templates/argo_base.template index 4ea63d3..a5670e0 100644 --- a/_templates/argo_base.template +++ b/_templates/argo_base.template @@ -3,6 +3,7 @@ name:: error "name must be defined", namespace:: $.name, syncOptions:: ["CreateNamespace=true"], + retryLimit:: 5, apiVersion: "argoproj.io/v1alpha1", kind: "Application", @@ -21,6 +22,14 @@ selfHeal: true, prune: true, }, + retry: { + limit: $.retryLimit, + backoff: { + duration: "5s", + factor: 2, + maxDuration: "5m", + }, + }, syncOptions: $.syncOptions, } } diff --git a/init.yml b/init.yml index ce23ece..d610796 100644 --- a/init.yml +++ b/init.yml @@ -50,3 +50,9 @@ spec: automated: prune: true selfHeal: true + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 5m