-
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
TEP-0011: Add StdoutConfig and StderrConfig to steps. #4882
TEP-0011: Add StdoutConfig and StderrConfig to steps. #4882
Conversation
Hi @bradbeck. 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. |
/ok-to-test |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-alpha-integration-tests |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@vdemeester @imjasonh Please take a look. |
cmd/entrypoint/main.go
Outdated
@@ -45,6 +45,8 @@ var ( | |||
terminationPath = flag.String("termination_path", "/tekton/termination", "If specified, file to write upon termination") | |||
results = flag.String("results", "", "If specified, list of file names that might contain task results") | |||
timeout = flag.Duration("timeout", time.Duration(0), "If specified, sets timeout for step") | |||
stdoutPath = flag.String("stdout_path", "", "If specified, file to copy stdout to") | |||
stderrPath = flag.String("stderr_path", "", "If specified, file to copy stdout to") |
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.
s/stdout/stderr/
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.
LGTM, the only question I have is wether we want to add this behind a feature-flag or not — as it is additive only, I think it is fine to add it directly, but maybe we want to hide it behind the alpha feature flag.
@bradbeck 👍🏼
@vdemeester Thanks for the feedback. Working on understanding what it takes to put this behind the alpha feature flag. |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/retest |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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]>
The following is the coverage report on the affected files.
|
yay, tests passing now!! 😎 |
@@ -1239,6 +1239,171 @@ spec: | |||
} | |||
} | |||
|
|||
func TestAlphaReconcile(t *testing.T) { |
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.
🤩
volumeMounts: | ||
- name: data | ||
mountPath: /data | ||
volumes: | ||
- name: data |
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.
We generally discourage use of volumes
in favour of workspaces
which is the preferred authoring time abstraction. Could you change the example here to use workspaces
instead, as users will often copy examples from the reference docs. Thank you!
|
||
> NOTE: | ||
> | ||
> - If the intent is to share output between `Step`s via a file, the user must ensure that the paths provided are shared between the `Step`s (e.g via `volumes`). |
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.
Users should use a workspace rather than a volume. The workspace can be bound at runtime to an emptyDir
is the required sharing is only within the Task
.
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.
Thank you so much for this feature! 🎉
I would very much like to see the suggested update to the docs before this is merged, but otherwise everything LGTM, code, docs and test coverage.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
/lgtm
Very excited to try this out 🎉 Thank you @bradbeck for implementing this 🙏 Thank you @afrittoli and @vdemeester for the reviews 🙏 |
TEP-0011 was implemented in tektoncd/pipeline#4882. This change updates the TEP state from `implementable` to `implemented`.
TEP-0011 was implemented in tektoncd/pipeline#4882. This change updates the TEP state from `implementable` to `implemented`.
Changes
Implements Option 1 of TEP-0011
Resurrects #3103
Closes #2925
Signed-off-by: Brad Beck [email protected]
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes