Skip to content

NewController constructors have unwieldy argument lists #1189

Closed

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

Activity

  1. added
    area/API
    kind/cleanup
    on Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIkind/cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions