-
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 the support of configuring the default timeout of TaskRun #996
Conversation
I think part of your change might be missing from the commit, looking at 2b10d24 it says " Add a new param default_timeout for TaskRun" but the changes look like they only do the first part "Change the default timeout from 10 mins to 60 mins". Looks like a step in the right direction anyway! (I hope you don't mind @houshengbo I updated the "release note" section of the PR description) |
Or maybe it's b/c this was a "WIP" in progress PR, in which case my apologies for reviewing too early! 🙏 |
@bobcatfish Thank you for the updates. |
@houshengbo Looks like codegen needs to be run. =) |
/assign @abayer |
@abayer @bobcatfish @vdemeester Should I do it in reconciler for pipelinerun and taskrun? Or should I call is somewhere, so that global context will have it, and can be accessed anywhere in need? |
I'm wondering if this needs to be this elaborate? We use |
@abayer |
I have no problem with creating a new one, and making it more general, I'm just wondering if we need to be using the approach you're using here to get data from it or if we can use something more like we do with the existing ones. |
/test pull-tekton-pipeline-go-coverage |
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.
Seems good to me (and it follows knative/* pattern for those things so yay 🎉)
One remark, we need to start using The Tekton Authors
instead of The Knative Authors
at some point 👼
/cc @bobcatfish
|
/test pull-tekton-pipeline-integration-tests |
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.
This may conflict a tiny bit with #1015 but it's fine 👼
@houshengbo Can you update the commit message to remove * Add a new param default_timeout for TaskRun
and add * Adds a
config_defaults configMap for configuring pipeline default values per tektoncd/pipeline instance
?
@vdemeester Already did it. |
* Changes the default timeout from 10 mins to 60 mins * Adds a config_defaults configMap for configuring pipeline default values per tektoncd/pipeline instance
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: houshengbo, vdemeester 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 |
Thanks for making this change @houshengbo ! Would it also make sense to add some docs at https://github.com/tektoncd/pipeline/blob/master/docs/install.md#configuring-tekton-pipelines so users know this is something they can configure? |
Changes
Closes #979
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.
Release Notes