-
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.
feat: Add ValidationPolicy & ValidationEvent
- Add ValidationPolicy: ExitEarly (default) - exit before apply/prune if any objects are invalid SkipInvalid - apply/prune valid objects & skip invalid ones - Add ValidationEvent to be sent once for every invalid object or set of objects, when the SkipInvalid policy is selected. For ExitEarly, return an error for reverse compatibility. - Add validation.Collector to simplify aggregating validation errors from multiple sources and extracting invalid object IDs. - 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. - Update Solver to use validation.Collector and filter invalid objects. - Add e2e test for invalid objects. - Update Printers to handle ValidationEvent - Add ExternalDependencyError & InvalidAnnotationError to make it easier to handle and introspect validation errors.
- Loading branch information
Showing
45 changed files
with
2,469 additions
and
480 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
Oops, something went wrong.