Skip to content

overrider.settingNamespaces(String... ns) #1259

Closed
@morhidi

Description

@morhidi

Hi Folks,

I haven't found an easy way to register a controller with a list of namespaces.

Planning to add some workaround:

operator.register(controller, overrider -> {    
String[] watchedNamespaces = new String[]{"ns1","ns2"};
String fakeNs = UUID.randomUUID().toString();    
overrider.settingNamespace(fakeNs); // <-clears the default, adds a fake
overrider.addingNamespaces(watchedNamespaces);    
overrider.removingNamespaces(fakeNs);}); // <-removes the fakse

Basically I'm missing some methods that clear the default then override the namespaces with multiple values:
overrider.settingNamespaces(String... namespaces)
overrider.settingNamespaces(Set<String> namespaces)

Let me know if I'm missing something here.

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