We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d981b19 commit 78ae67aCopy full SHA for 78ae67a
staging/src/k8s.io/kubectl/pkg/cmd/cp/cp.go
@@ -18,7 +18,6 @@ package cp
18
19
import (
20
"archive/tar"
21
- "bytes"
22
"context"
23
"errors"
24
"fmt"
@@ -269,8 +268,8 @@ func (o *CopyOptions) checkDestinationIsDir(dest fileSpec) error {
269
268
options := &exec.ExecOptions{
270
StreamOptions: exec.StreamOptions{
271
IOStreams: genericiooptions.IOStreams{
272
- Out: bytes.NewBuffer([]byte{}),
273
- ErrOut: bytes.NewBuffer([]byte{}),
+ Out: io.Discard,
+ ErrOut: io.Discard,
274
},
275
276
Namespace: dest.PodNamespace,
0 commit comments