Skip to content

Create separate configmap store for Configuration reconciler and Labeler #8871

Closed

Description

@whaught

/area API
/kind good-first-issue

Describe the feature

Currently Configuration and Labeler share the store from /api, but they should have their own (at the moment Features is consumed, but Autoscaling and Defaults are not) for clean separation and so that we can add specific configmaps for these in the future.

Follow up to: #8850
Example of adding to an existing store: #8858

Activity

  1. added
    kind/feature
    on Jul 31, 2020
  2. changed the title [-]Create separate store for Configuration reconciler and Labeler[/-] [+]Create separate configmap store for Configuration reconciler and Labeler[/+] on Jul 31, 2020
  3. arturenault commented on Aug 11, 2020

    @arturenault
    Contributor

    To clarify; is the intent here to encapsulate the existing ConfigMaps (or just Features, since that's what's currently used) into a new store object that is exclusive to Labeler and Configuration?

    If I understand correctly, rewriting the ConfigMaps themselves is out of scope for this particular issue.

  4. SwEngin commented on Aug 19, 2020

    @SwEngin

    I would like to give this a go.

  5. whaught commented on Aug 19, 2020

    @whaught
    ContributorAuthor

    To clarify; is the intent here to encapsulate the existing ConfigMaps (or just Features, since that's what's currently used) into a new store object that is exclusive to Labeler and Configuration?

    If I understand correctly, rewriting the ConfigMaps themselves is out of scope for this particular issue.

    Correct. The configmaps have a struct that each reconciler creates and populates. I kind of lazily recycled an existing store for: #8850 but that's not usually the pattern.

    Eg. Configuration references "knative.dev/serving/pkg/apis/config" as its config store.
    However reconcilers like Route have their own: https://github.com/knative/serving/blob/master/pkg/reconciler/route/config/store.go

    That means Configuration probably gets more configmap than it really needs (eg some autoscaler config)

  6. SwEngin commented on Aug 24, 2020

    @SwEngin

    @whaught just making sure before I submit my pull request so both configuration and labeler will have their own store which include only config-defaults and config-features anything I'm missing? that of course will replace the cfgmap "knative.dev/serving/pkg/apis/config" in both controllers

  7. whaught commented on Aug 24, 2020

    @whaught
    ContributorAuthor

    That's correct! It should allow each reconciler to change independently over time (instead of sharing the api config) and matches what's been done with other controllers.

  8. whaught commented on Sep 8, 2020

    @whaught
    ContributorAuthor

    /close

  9. knative-prow-robot commented on Sep 8, 2020

    @knative-prow-robot
    Contributor

    @whaught: Closing this issue.

    Details

    In response to this:

    /close

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions