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",
|
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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
6
init.yml
6
init.yml
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue