-
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
Allow user to specify only tasks or finally timeout #5460
Conversation
This commit updates PipelineRun validation to allow a user to specify only a tasks timeout or only a finally timeout. Prior to this commit, if a user wanted to specify no Pipeline timeout (i.e. timeouts.pipeline = 0), they would not be able to specify values for the other timeouts fields.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abayer 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 |
pipeline: "0" # No timeout | ||
finally: "0h3m0s" | ||
``` | ||
|
||
You can also use the *Deprecated* `timeout` field to set the `PipelineRun's` desired timeout value in minutes. | ||
If you do not specify this value in the `PipelineRun`, the global default timeout value applies. | ||
If you set the timeout to 0, the `PipelineRun` fails immediately upon encountering an error. |
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.
thanks @lbernick for the fix!
Does this statement still hold true? This is documented in the next paragraph.
If you set the timeout value or timeouts.pipeline to 0, the PipelineRun fails immediately upon encountering an error.
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.
Yes, this should still be correct, thanks for checking!
/lgtm |
Changes
This commit updates PipelineRun validation to allow a user to specify only a tasks timeout or only a finally timeout.
Prior to this commit, if a user wanted to specify no Pipeline timeout (i.e. timeouts.pipeline = 0), they would not be able to specify values for the other timeouts fields.
Closes #5459.
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes