-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add timeout flag to apply, destory, and preview cmds - Default to no timeout - Add context to TaskContext - Pass context through to all functions that use it - Rename prune-timeout flag to delete-timeout and add actual impl - Rename PruneOptions to Pruner (there's already prune.Options) - Rename PropagationPolicy to DeletionPropagationPolicy consistently - Wrap func calls and defs for readability - Remove Prune bool from solver.Options to simplify AppendPruneWaitTasks to always prune. Change Applier to only call AppendPruneWaitTasks if NoPrune. Change Destroyer to always call AppendPruneWaitTasks. - Replace task.ClearTimeout with context.Cancel - Add task.OnStatusEvent to fix WaitTask leaky abstraction. baseRunner was calling private funcs from WaitTask. - Move ResourceStatusCollector into TaskContext. It doesn't need to persist between runs. Moving it simplifies baseRunner. This required making some of the collector funcs public. - Remove Identifier from collector.ResourceStatus. Redundant with id. - Add collector.Get/Put funcs for encapsulation and thread-safety - Add locking to ResourceStatusCollector because a test was complaining about a race condition when updating status from another goroutine, like the poller does. - Add logging to taskrunner tests for easier debugging concurrency - Update task tests for cancel and timeout - Rename options vars to "opts" for consistency - Rewrite WaitTask context/timeout handling. TaskChannel is now only written to from one place, gated by an internal error channel and sync.Once. WaitTask now distinguishes between wait task timeout and parent context timeout. - Update task tests to reflect new behavior with context cancel/timeout
- Loading branch information
Showing
46 changed files
with
1,075 additions
and
670 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
Oops, something went wrong.