Skip to content

ConfiguredController behavior #554

@lburgazzoli

Description

@lburgazzoli

I see that the ConfiguredController has an init method in which does:

@Override
public void init(EventSourceManager eventSourceManager) {
  this.manager = eventSourceManager;
  controller.init(eventSourceManager);
}

So the underlying controller is initialized with the manager that is passed as an argument. But then the start method does something similar:

try {
  DefaultEventSourceManager<R> eventSourceManager = new DefaultEventSourceManager<>(this);
  controller.init(eventSourceManager);
} catch (MissingCRDException e) {
  throwMissingCRDException(crdName, specVersion, controllerName);
}

Wonder if this is correct or if this lead the controller to be initialized with two different event source manager.

Metadata

Metadata

Assignees

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