Skip to content

Commit

Permalink
Merge pull request #650 from ykulazhenkov/pr-remove-stdin-from-pod-exec
Browse files Browse the repository at this point in the history
Experiment: Remove stdin from the ExecCommand call in tests
  • Loading branch information
e0ne committed Mar 11, 2024
2 parents 07b5fd3 + 4b5087a commit 5bc82da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/util/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"context"
"io"
"os"
"strings"
"time"

Expand Down Expand Up @@ -116,7 +115,6 @@ func ExecCommand(cs *testclient.ClientSet, pod *corev1.Pod, command ...string) (
VersionedParams(&corev1.PodExecOptions{
Container: pod.Spec.Containers[0].Name,
Command: command,
Stdin: true,
Stdout: true,
Stderr: true,
TTY: true,
Expand All @@ -128,7 +126,6 @@ func ExecCommand(cs *testclient.ClientSet, pod *corev1.Pod, command ...string) (
}

err = exec.Stream(remotecommand.StreamOptions{
Stdin: os.Stdin,
Stdout: &buf,
Stderr: &errbuf,
Tty: true,
Expand Down

0 comments on commit 5bc82da

Please sign in to comment.