Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Update cmd/fluxctl/portforward.go
Browse files Browse the repository at this point in the history
In context where ctx context is already available, use it

Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
  • Loading branch information
Kingdon Barrett and hiddeco committed Aug 17, 2021
1 parent 9567a85 commit 7552e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fluxctl/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func tryPortforward(ctx context.Context, kubeConfigContext string, ns string, se
return portforwarder, errors.Wrap(err, "Could not create kubernetes client")
}

err = portforwarder.Start(context.TODO())
err = portforwarder.Start(ctx)
if err != nil {
return portforwarder, err
}
Expand Down

0 comments on commit 7552e54

Please sign in to comment.