Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
pkg/lifecycle/kubectl: Fix swallowed error on DaemonlessKubectl.Execute
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Aug 27, 2019
1 parent 7880790 commit 933dac8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/lifecycle/kubectl/daemonless.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func (d *DaemonlessKubectl) Execute(ctx context.Context, release api.Release, st
debug := level.Debug(log.With(d.Logger, "step.type", "kubectl"))

cmd, err := d.prepareCmd(release, step)
if err != nil {
return errors.Wrap(err, "failed to prepare command for daemonless kubectl execution")
}

debug.Log("event", "kubectl.execute", "args", fmt.Sprintf("%+v", cmd.Args))

var stderr bytes.Buffer
Expand Down

0 comments on commit 933dac8

Please sign in to comment.