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

Commit

Permalink
Merge pull request #1053 from alrs/fix-daemonless-dropped-error
Browse files Browse the repository at this point in the history
pkg/lifecycle/kubectl: Fix swallowed error on DaemonlessKubectl.Execute
  • Loading branch information
laverya authored Aug 27, 2019
2 parents abf7e61 + 933dac8 commit 0061de0
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 0061de0

Please sign in to comment.