Skip to content

Commit ad00f58

Browse files
aleoliadamjensenbot
authored andcommitted
fix exec command
1 parent b44e99e commit ad00f58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/virtualKubelet/provider/pods.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ func (p *LiqoProvider) RunInContainer(ctx context.Context, homeNamespace, homePo
238238
VersionedParams(&corev1.PodExecOptions{
239239
Container: containerName,
240240
Command: cmd,
241-
Stdin: true,
242-
Stdout: true,
243-
Stderr: true,
244-
TTY: true,
241+
Stdin: attach.Stdin() != nil,
242+
Stdout: attach.Stdout() != nil,
243+
Stderr: attach.Stderr() != nil,
244+
TTY: attach.TTY(),
245245
}, scheme.ParameterCodec)
246246

247247
exec, err := remotecommandclient.NewSPDYExecutor(p.foreignRestConfig, "POST", req.URL())

0 commit comments

Comments
 (0)