Skip to content

NewController constructors have unwieldy argument lists #1189

@mattmoor

Description

@mattmoor

This came up in discussion on #1110. The NewController constructors have gotten (ok, always been) unwieldy. They are very mildly heterogeneous (e.g. buildInformer on revision.NewController), but have significant commonality.

This commonality actually is aligned with @mdemirhan's refactoring of controller.Base, where controller.NewBase takes the common arguments. We should consider making controller.NewBase take a new controller.Options to shrink these argument lists.

cc @evankanderson

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIAPI objects and controllerskind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions