Skip to content

Reconcile methods should take a context and logger #801

Closed
@vincepri

Description

@vincepri

We can have different solutions to this issue, but it's going to be indeed a breaking change.

A few ideas to discuss:

  • Add two parameters to Reconcile, one for context, one for logger. (Simple solution, quick to implement).
  • Create a new Context type in controller-runtime and expand it for our own use cases (More complicated, needs a design document / proposal).
    • Importable using ctrl.Context, should always satisfy context.Context interface.
    • Contains a pre-populated logger with name/namespace, and maybe gvk?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/designCategorizes issue or PR as related to design.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions