-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation for PR infinite timeouts
Prior to this commit, it was possible to create a PipelineRun with `timeouts.tasks` or `timeouts.finally` set to 0 (no timeout) without setting the `timeouts.pipeline` to 0. If `timeouts.pipeline` is not set, it defaults to the global timeout value, which is not 0. This would imply that `timeouts.tasks` or `timeouts.finally` is longer than `timeouts.pipeline`, and it's not clear how Tekton should handle this. Prior to this commit, Tekton in practice handles this situation by timing out the PipelineRun when `timeouts.pipeline` is reached, but never timing out the TaskRun, which is clearly inconsistent behavior. This commit results in an error returned to the user if they define a PipelineRun spec as described above, and documents this behavior.
- Loading branch information
1 parent
05baf08
commit e2b30a5
Showing
3 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters