Skip to content

Conversation

@codeblooded
Copy link
Owner

There were some unnecessary conditionals that made the function unnecessarily longer. This commit removes them.

Ben Reed added 2 commits May 8, 2020 16:58
This change implements timeouts on orchestration events, preventing
rouge operations from blocking indefinitely. Specifically, it:

 - Switches the Executor.Execute method to accept a context.Context

 - Modifies (*kubeExecutor).provision and (*kubeExecutor).monitor to
   use a context.Context. They now return an error when the context
   is cancelled before completion.

 - Adds a TestTimeout field to ControllerOptions. This sets the
   timeout on the Executor's context.

It also performs a handful of clean-up tasks, including:

 - Using UUIDs to name executors

 - Making TestKubeExecutorProvision a table-driven test
There were some unnecessary conditionals that made the function
unnecessarily longer. This commit removes them.
@codeblooded codeblooded added refactor Non-functional change for project clean up P3 Low priority; prioritized over P4 issues orch Concerns orchestration, monitoring and infrastructure labels May 9, 2020
@codeblooded codeblooded added this to the v0.2-prealpha milestone May 9, 2020
@codeblooded codeblooded self-assigned this May 9, 2020
@codeblooded codeblooded force-pushed the feature/controller-options branch 3 times, most recently from 679826d to 31e741a Compare May 11, 2020 18:25
@codeblooded
Copy link
Owner Author

Will refactor later with errors. Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orch Concerns orchestration, monitoring and infrastructure P3 Low priority; prioritized over P4 issues refactor Non-functional change for project clean up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants