Skip to content

Commit

Permalink
Merge pull request #122 from subhamkrai/fix-stdin-mon-quorum
Browse files Browse the repository at this point in the history
core: fix error when reading stdin
  • Loading branch information
travisn authored Jun 14, 2023
2 parents 4967a23 + 5cca6c3 commit 5be0d47
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ func execCmdInPod(ctx context.Context, clientsets *k8sutil.Clientsets,
VersionedParams(&v1.PodExecOptions{
Container: containerName,
Command: cmd,
Stdin: true,
Stdout: true,
Stderr: true,
TTY: false,
Expand All @@ -139,7 +138,6 @@ func execCmdInPod(ctx context.Context, clientsets *k8sutil.Clientsets,
if !returnOutput {
// Connect this process' std{in,out,err} to the remote shell process.
err = exec.StreamWithContext(ctx, remotecommand.StreamOptions{
Stdin: os.Stdin,
Stdout: os.Stdout,
Stderr: os.Stderr,
Tty: false,
Expand All @@ -154,7 +152,6 @@ func execCmdInPod(ctx context.Context, clientsets *k8sutil.Clientsets,
} else {
// Connect this process' std{in,out,err} to the remote shell process.
err = exec.StreamWithContext(ctx, remotecommand.StreamOptions{
Stdin: os.Stdin,
Stdout: stdout,
Stderr: stderr,
Tty: false,
Expand Down

0 comments on commit 5be0d47

Please sign in to comment.