Adding support for staggered updates along with tests.

This commit is contained in:
Renan DelValle 2018-12-20 14:12:01 -08:00
parent 926f802987
commit 7384dfdde3
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
4 changed files with 79 additions and 3 deletions

View file

@ -138,6 +138,12 @@ func (u *UpdateJob) RollbackOnFail(rollback bool) *UpdateJob {
return u
}
// When False, prevents auto rollback of a failed update.
func (u *UpdateJob) UpdateStrategy(updateStrategy *aurora.JobUpdateStrategy) *UpdateJob {
u.req.Settings.UpdateStrategy = updateStrategy
return u
}
func NewUpdateSettings() *aurora.JobUpdateSettings {
us := new(aurora.JobUpdateSettings)