-
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.
Replace ValidateFrom with PipelineSpec.Validate
While working on #1256 I noticed that we had two different functions to validate that the `from` field. One was being used by the webhook, and the other in the reconciler. I replaced the `ValidateFrom` in the reconciler with the more general `Validate` that validates the entire pipeline spec, not just one field. In addition, I fixed some of the reconciler tests that were now failing due to having an invalid pipeline spec e.g. pipeline tasks with no name. Signed-off-by: Dibyo Mukherjee <[email protected]>
- Loading branch information
1 parent
ee806d2
commit fe47335
Showing
5 changed files
with
66 additions
and
314 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
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.