Skip to content

Allow Exec API user to override streams#2487

Merged
openshift-merge-robot merged 1 commit into
containers:masterfrom
haircommander:exec_attahc
Feb 28, 2019
Merged

Allow Exec API user to override streams#2487
openshift-merge-robot merged 1 commit into
containers:masterfrom
haircommander:exec_attahc

Conversation

@haircommander
Copy link
Copy Markdown
Collaborator

Allow passing in of AttachStreams to libpod.Exec() for usage in podman healthcheck. An API caller can now specify different streams for stdout, stderr and stdin, or no streams at all.

Signed-off-by: Peter Hunt pehunt@redhat.com

Comment thread cmd/podman/exec.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wanted to be fancy, we could finally implement -i with this... but that sounds like followup work

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I figured I'd leave the podman exec changes for later :)

Comment thread libpod/oci.go Outdated
Comment thread libpod/oci.go Outdated
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Feb 28, 2019

@baude This might solve your exec problem for health checks.

Allow passing in of AttachStreams to libpod.Exec() for usage in podman healthcheck. An API caller can now specify different streams for stdout, stderr and stdin, or no streams at all.

Signed-off-by: Peter Hunt <pehunt@redhat.com>
@mheon
Copy link
Copy Markdown
Member

mheon commented Feb 28, 2019

Code LGTM
/approve

@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, mheon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2019
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Feb 28, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2019
@openshift-merge-robot openshift-merge-robot merged commit a680144 into containers:master Feb 28, 2019
@github-actions github-actions Bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 27, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants