Skip to content

Commit

Permalink
Don't print the status summary if the user ctrl-Cd
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <david@gageot.net>
  • Loading branch information
dgageot committed Mar 31, 2020
1 parent 897f5b7 commit 2b6848d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/skaffold/deploy/resource/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func (d *Deployment) CheckStatus(ctx context.Context, runCtx *runcontext.RunCont
kubeCtl := kubectl.NewFromRunContext(runCtx)

b, err := kubeCtl.RunOut(ctx, "rollout", "status", "deployment", d.name, "--namespace", d.namespace, "--watch=false")
if ctx.Err() != nil {
return
}

details := d.cleanupStatus(string(b))

err = parseKubectlRolloutError(err)
Expand Down

0 comments on commit 2b6848d

Please sign in to comment.