-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move dependency validation from Validator to SortObjs. - Move SortObjs call from solver to applier/destroyer. This allows the resulting errors to be treated as validation errors. - Modify SortObjs to return a MultiError so that all validation errors can be sent and invalid objects can be skipped or cause early exit. - Add invalid objects to the TestContext so they can be retained in the inventory (only if already present). This primarily applies to invalid annotations and dependencies. Objects without name or kind should never be added to the inventory. - Remove invalid objects from the applySet/pruneSet, rather than filtering and skipping them in the apply/prune/wait tasks. This reduces the number of events that are redundant now with validation events. - Handle CyclicDependencyError as a validation error. It applies to multiple objects, instead of just one, like ValidationError. - Handle validation of dependency errors in destroyer as well as the applier. - Replace many -OrDie object commands that were panicing when an invalid object was found. Add ValidateObjMetadata to do the validation that the -OrDie functions were doing. - Replace MultiValidationError with a more generic MultiError. - Simplify ValidationError to optionally wrap MultiError. - Modify ValidationError output to be easier to read. - Add e2e test for invalid object handling.
- Loading branch information
Showing
43 changed files
with
1,213 additions
and
507 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
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.