deployment status indicates whether canaries were promoted

This commit is contained in:
Alex Dadgar
2017-07-06 20:06:50 -07:00
parent 09af3f98b8
commit 5bcf2dd1f0

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