mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
deployment status indicates whether canaries were promoted
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user