-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add StdoutConfig
and StderrConfig
to steps.
#3103
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @chhsia0. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind feature |
/ok-to-test |
The following is the coverage report on the affected files.
|
@chhsia0: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
-stdout_path
and -stderr_path
flags to entrypoint.-stdout_file
and -stderr_file
flags to entrypoint.
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.
@chhsia0 how do we envision being able to pass those flags from the "API" ?
@vdemeester I'll create a TEP for passing the params :) Right now in its current state user would use env vars as a channel transparent to the Tekton controller. Sounds scary huh? ;) |
😁 nothing is scary 😝 and as you said during the API WG, it allows you to more easily experiment with it without really commiting to it (aka see if it's useful and all). |
8b70a13
to
8bd1736
Compare
The following is the coverage report on the affected files.
|
/remove-lifecycle stale |
When `-stdout_path` and `-stderr_path` are set, the entrypoint binary will copy stdout and stderr to the specified paths. This can be used to capture the stdout or stderr of a step in task results. The default values of these flags are obtained from the `TEKTON_STDOUT_PATH` and `TEKTON_STDERR_PATH` environment variables, so users can specify these variables in the step's environment to enable stdout/stderr capturing.
ea992c6
to
a52c86f
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@chhsia0: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
1 similar comment
@chhsia0: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
highly relevant: kubernetes/kubernetes#94892 |
@chhsia0: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@chhsia0 I'm thinking maybe it makes sense at this point to close this PR for now, unless you're planning to pick it up again in the near future. We can always re-open. |
I think we can close, and I plan to carry this one soon 😇 |
@vdemeester: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Implements Option 1 of [TEP-0011](https://github.com/tektoncd/community/blob/master/teps/0011-redirecting-step-output-streams.md) Resurrects [#3103](#3103) Closes [#2925](#2925) Signed-off-by: Brad Beck <[email protected]>
Changes
This PR implements Option 1 of TEP-0011.
Closes #2925.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Double check this list of stuff that's easy to miss:
cmd
dir, please updatethe release Task to build and release this image.
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
EXPERIMENTAL: Users can specify the
TEKTON_STDOUT_FILE
andTEKTON_STDERR_FILE
environment variables in steps to capture steps' stdout and stderr to local files. This feature can be used to capture stdout and stderr into task results.