Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide deadlines or cancelations for all uses of context.Context #600

Closed
3 tasks
devigned opened this issue May 6, 2020 · 2 comments · Fixed by #690
Closed
3 tasks

Provide deadlines or cancelations for all uses of context.Context #600

devigned opened this issue May 6, 2020 · 2 comments · Fixed by #690
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@devigned
Copy link
Contributor

devigned commented May 6, 2020

/kind feature

Describe the solution you'd like
An iteration of a reconcile loop should be bounded by a default deadline. In other words, a single execution of reconcile in a controller should not be able to run indefinitely.

As of today, there are several code paths where context.TODO() is used for a context. This context provides no ability to cancel or bound execution on those code paths. Some of these code paths will need to have a context piped in through functions up the call stack, and may have more widespread impact to function signatures.

Examples:

TODOs:

  • determine a default max deadline for a single reconcile
  • provide a manager cli argument for default max deadline
  • remove usage of context.TODO and replace with bounded contexts

See Also

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label May 6, 2020
@CecileRobertMichon CecileRobertMichon added this to the next milestone Jun 4, 2020
@CecileRobertMichon
Copy link
Contributor

/priority important-soon

@k8s-ci-robot k8s-ci-robot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Jun 4, 2020
@devigned
Copy link
Contributor Author

devigned commented Jun 8, 2020

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants