FEAT: add retry limit

This commit is contained in:
Sebastian Mark 2022-04-07 08:25:32 +02:00
parent e2fe9bb682
commit d4e1df05c0
2 changed files with 15 additions and 0 deletions

View file

@ -3,6 +3,7 @@
name:: error "name must be defined", name:: error "name must be defined",
namespace:: $.name, namespace:: $.name,
syncOptions:: ["CreateNamespace=true"], syncOptions:: ["CreateNamespace=true"],
retryLimit:: 5,
apiVersion: "argoproj.io/v1alpha1", apiVersion: "argoproj.io/v1alpha1",
kind: "Application", kind: "Application",
@ -21,6 +22,14 @@
selfHeal: true, selfHeal: true,
prune: true, prune: true,
}, },
retry: {
limit: $.retryLimit,
backoff: {
duration: "5s",
factor: 2,
maxDuration: "5m",
},
},
syncOptions: $.syncOptions, syncOptions: $.syncOptions,
} }
} }

View file

@ -50,3 +50,9 @@ spec:
automated: automated:
prune: true prune: true
selfHeal: true selfHeal: true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 5m