-
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. 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
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