forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Pipeline Workspaces Validation
In this change, we split up the long function for `workspaces` validation and remove duplications. The first function validates the `workspaces` declarations in the `pipeline` - that they are unique and non-empty. The second function validates the usage of `workspaces` in `pipelinetasks` - which is reused for both `tasks` and `finally`.
- Loading branch information
1 parent
45b7c37
commit f2da9a8
Showing
3 changed files
with
89 additions
and
49 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