-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: do not copy stdin and set tty to false #738
Conversation
This commit removes the instruction to copy the stdin in the docker wrapper and set tty to true is some cases. We don't need that since we don't expect KIB to read from stdin.
cmd := exec.Command( | ||
"docker", "run", | ||
"--interactive", | ||
"--tty="+strconv.FormatBool(r.tty), | ||
"--tty=false", |
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.
should we remove this flag in its entirety?
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 is default... but maybe it makes sense to be explicit.
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.
Looks good! Thank you and we got rid of one more dependency
@faiq shall we plan a backport or better leave it to upcoming versions? |
I don’t think it needs a backport. |
What problem does this PR solve?:
This commit removes the instruction to copy the stdin in the docker wrapper and set tty to true is some cases. We don't need that since we don't expect KIB to read from stdin.
Which issue(s) does this PR fix?:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: