Skip to content

Commit

Permalink
fix deprecated exector
Browse files Browse the repository at this point in the history
  • Loading branch information
clbx committed Apr 27, 2024
1 parent 9975020 commit 92ad9c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ func getCommand(kubeConfigFlags *genericclioptions.ConfigFlags, pvcName string)

defer terminal.Restore(int(os.Stdin.Fd()), oldState)

err = exec.Stream(remotecommand.StreamOptions{
ctx := context.Background()
err = exec.StreamWithContext(ctx, remotecommand.StreamOptions{
Stdin: os.Stdin,
Stdout: os.Stdout,
Stderr: os.Stderr,
Expand Down

0 comments on commit 92ad9c0

Please sign in to comment.