-
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.
Cleanup: Move array indexing validation out of apis package
We validate that indexing references to array parameters are in bounds, based on the default values of the parameters and the parameter values passed in from a PipelineRun/TaskRun. This validation happens in the reconciler, since it requires comparing the Task/Pipeline spec with the parameters defined in the TaskRun/PipelineRun. Prior to this commit, validation code was in the apis package, even though it was called in the reconciler. This is confusing, because this code cannot be used to validate a Task/Pipeline spec in isolation; it can only be used in the context of TaskRuns and PipelineRuns. This commit moves this validation logic to the reconciler and does not introduce any functional changes.
- Loading branch information
1 parent
8d1a903
commit 5d5fd5b
Showing
18 changed files
with
852 additions
and
1,318 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
Oops, something went wrong.