Skip to content

Commit

Permalink
fix(status): fix release status (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-ang authored May 27, 2018
1 parent 7962812 commit 3281ead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/status/assistants/apps/v1/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ func DeploymentAssistant(store store.IntegrationStore, obj runtime.Object) (stat
updated := dp.Status.UpdatedReplicas
available := dp.Status.AvailableReplicas
unavailable := dp.Status.UnavailableReplicas
observedGen := dp.Status.ObservedGeneration
switch {
case unavailable == 0 && desired == current && desired == updated && desired == available:
return status.Available, nil
case unavailable > 0 && desired == updated && desired != available:
case unavailable > 0 && desired == updated && desired != available && observedGen != 1:
// TODO(kdada): Check wrong pods for more precise verdict
return status.Failure, nil
default:
Expand Down

0 comments on commit 3281ead

Please sign in to comment.