FEAT: add retry limit
This commit is contained in:
parent
e2fe9bb682
commit
d4e1df05c0
2 changed files with 15 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
6
init.yml
6
init.yml
|
@ -50,3 +50,9 @@ spec:
|
|||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
retry:
|
||||
limit: 5
|
||||
backoff:
|
||||
duration: 5s
|
||||
factor: 2
|
||||
maxDuration: 5m
|
||||
|
|
Loading…
Reference in a new issue