deployment status indicates whether canaries were promoted

This commit is contained in:
Alex Dadgar 2017-07-06 20:06:50 -07:00
parent 4e014e36f7
commit 7867f2cdb8
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func formatDeployment(d *api.Deployment, uuidLength int) string {
}
rowString += "Desired|"
if canaries {
rowString += "Canaries|"
rowString += "Canaries|Promoted|"
}
rowString += "Placed|Healthy|Unhealthy"
@ -190,6 +190,7 @@ func formatDeployment(d *api.Deployment, uuidLength int) string {
row += fmt.Sprintf("%d|", state.DesiredTotal)
if canaries {
row += fmt.Sprintf("%d|", state.DesiredCanaries)
row += fmt.Sprintf("%v|", state.Promoted)
}
row += fmt.Sprintf("%d|%d|%d", state.PlacedAllocs, state.HealthyAllocs, state.UnhealthyAllocs)
rows[i] = row