Skip to content

How to correctly use context arguments is unclear #265

@coderanger

Description

@coderanger

Most of the examples use context.TODO() on each call into the client. Would be nice to have a better explanation of what this is for.

And someday it would be cool to add a .Context field on the reconcile.Request for controllers (and maybe something similar for webhooks, though that's harder), and have the controller machinery create a context.Background() at the start of a request so you can thread it down into calls to the client library and whatnot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/documentationCategorizes issue or PR as related to documentation.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions