Skip to content
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

Merged
merged 2 commits into from
Mar 21, 2023
Merged

feat: do not copy stdin and set tty to false #738

merged 2 commits into from
Mar 21, 2023

Conversation

jonathanbeber
Copy link
Contributor

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?:


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",
Copy link
Collaborator

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?

Copy link
Contributor

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.

Copy link
Collaborator

@faiq faiq left a 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 faiq changed the title feat: do not copy stdin and always have tty feat: do not copy stdin and set tty to false Mar 20, 2023
@github-actions github-actions bot added feature and removed feature labels Mar 20, 2023
@fatz
Copy link
Contributor

fatz commented Mar 21, 2023

@faiq shall we plan a backport or better leave it to upcoming versions?

@faiq
Copy link
Collaborator

faiq commented Mar 21, 2023

I don’t think it needs a backport.

@faiq faiq merged commit a5665e3 into main Mar 21, 2023
@faiq faiq deleted the jbeber/stdin-tty branch March 21, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants