docker-archive / deploykit

A toolkit for creating and managing declarative, self-healing infrastructure.
Apache License 2.0
2.25k stars 262 forks source link

Wait for node to be healthy for a period of time during update #861

Closed kaufers closed 6 years ago

kaufers commented 6 years ago

Adds a new Updating struct on the group.Spec:

type Updating struct {
    Duration types.Duration
    Count    int
}

This defines how long a node needs to be healthy on a rolling update before the update is applied to the next node in the group.

codecov[bot] commented 6 years ago

Codecov Report

Merging #861 into master will increase coverage by 0.28%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #861      +/-   ##
==========================================
+ Coverage   48.46%   48.75%   +0.28%     
==========================================
  Files          89       89              
  Lines        8124     8162      +38     
==========================================
+ Hits         3937     3979      +42     
+ Misses       3817     3815       -2     
+ Partials      370      368       -2
Impacted Files Coverage Δ
pkg/controller/group/group.go 50% <100%> (+4.45%) :arrow_up:
pkg/controller/group/scaler.go 90.6% <100%> (ø) :arrow_up:
pkg/controller/group/rollingupdate.go 95.34% <100%> (+1.59%) :arrow_up:
pkg/types/spec.go 58.4% <0%> (-1.77%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 84fa42a...6e102d1. Read the comment docs.