-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drop stdin for exec sync #750
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -666,9 +666,6 @@ type ExecSyncConfig struct { | |
|
||
// Terminal specifies if a tty should be used. | ||
Terminal bool | ||
|
||
// Stdin indicates if stdin should be available or not. | ||
Stdin bool | ||
} | ||
|
||
// ExecContainerResult is the result for calling the ExecSyncContainer method. | ||
|
@@ -709,7 +706,6 @@ func (c *ConmonClient) ExecSyncContainer(ctx context.Context, cfg *ExecSyncConfi | |
return err | ||
} | ||
req.SetTerminal(cfg.Terminal) | ||
req.SetStdin(cfg.Stdin) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’d say we drop it from the cfg type as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🙃 good catch There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah the tests have to be fixed as well. |
||
if err := p.SetRequest(req); err != nil { | ||
return fmt.Errorf("set request: %w", err) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also has to be removed from the client.go