Skip to content

Add support for watching multiple individual namespaces #3

Closed

Description

@munnerz

In order to support better scaling and isolation of cert-manager, a user should be able to specify a single namespace, or list of namespaces to watch. This does not necessarily have to be the same namespace as cert-manager is running in, just sufficient roles defined such that they can access the appropriate resources.

Ideally, we would multiplex multiple event streams to only watch events in the namespaces that are named as monitored, to save receiving the entire event stream for all namespaces.

/cc @whereisaaron @simonswine @luna-duclos

Activity

  1. luna-duclos commented on May 24, 2017

    @luna-duclos

    We can probably snip the watch logic straight out of KCM for this one.

  2. added this to the milestone on Aug 7, 2017
  3. munnerz commented on Aug 7, 2017

    @munnerz
    MemberAuthor

    I've created #35 that adds a function to create a new shared informer with a specific namespace & set of labels. We'll need to update the actual controllers in pkg/controller to use this function next.

    If a user specifies multiple namespaces, then we should create multiple instantiations of the Controller - one for each namespace being watched. This will mean there will be NumNamespaces * NumWorkersPerController worker goroutines processing at any one time.

  4. munnerz commented on Sep 8, 2017

    @munnerz
    MemberAuthor

    It's now possible to watch a single namespace. I'm going to push watching multiple namespaces out of the initial milestone as you can run an instance per namespace for now.

  5. removed this from the milestone on Sep 8, 2017
  6. munnerz commented on Jun 5, 2018

    @munnerz
    MemberAuthor

    Closing this as I've not seen any use-cases for it currently, and it introduces significant complexity to our handling of informers to do in any useful way.

  7. added a commit that references this issue on Mar 17, 2022
  8. added a commit that references this issue on Feb 6, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions