kubernetes-sigs / cluster-api-provider-azure

Cluster API implementation for Microsoft Azure
https://capz.sigs.k8s.io/
Apache License 2.0
295 stars 425 forks source link

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

Closed devigned closed 4 years ago

devigned commented 4 years ago

/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:

See Also

CecileRobertMichon commented 4 years ago

/priority important-soon

devigned commented 4 years ago

/assign