@@ -58,7 +58,7 @@ public void start() {
58
58
* Registers the specified controller with this operator.
59
59
*
60
60
* @param controller the controller to register
61
- * @param <R> the {@code CustomResource} type associated with the controller
61
+ * @param <R> the {@code CustomResource} type associated with the controller
62
62
* @throws OperatorException if a problem occurred during the registration process
63
63
*/
64
64
public <R extends CustomResource > void register (ResourceController <R > controller )
@@ -68,13 +68,14 @@ public <R extends CustomResource> void register(ResourceController<R> controller
68
68
69
69
/**
70
70
* Registers the specified controller with this operator, overriding its default configuration by
71
- * the specified one (usually created via {@link io.javaoperatorsdk.operator.api.config.ControllerConfigurationOverrider#override(ControllerConfiguration)},
71
+ * the specified one (usually created via {@link
72
+ * io.javaoperatorsdk.operator.api.config.ControllerConfigurationOverrider#override(ControllerConfiguration)},
72
73
* passing it the controller's original configuration.
73
74
*
74
- * @param controller the controller to register
75
+ * @param controller the controller to register
75
76
* @param configuration the configuration with which we want to register the controller, if {@code
76
- * null}, the controller's original configuration is used
77
- * @param <R> the {@code CustomResource} type associated with the controller
77
+ * null}, the controller's original configuration is used
78
+ * @param <R> the {@code CustomResource} type associated with the controller
78
79
* @throws OperatorException if a problem occurred during the registration process
79
80
*/
80
81
public <R extends CustomResource > void register (
@@ -96,11 +97,10 @@ public <R extends CustomResource> void register(
96
97
final var retry = GenericRetry .fromConfiguration (configuration .getRetryConfiguration ());
97
98
98
99
// check if we only want to watch the current namespace
99
- var targetNamespaces = configuration .getNamespaces ().toArray (new String []{});
100
+ var targetNamespaces = configuration .getNamespaces ().toArray (new String [] {});
100
101
if (configuration .watchCurrentNamespace ()) {
101
- targetNamespaces = new String []{
102
- configurationService .getClientConfiguration ().getNamespace ()
103
- };
102
+ targetNamespaces =
103
+ new String [] {configurationService .getClientConfiguration ().getNamespace ()};
104
104
}
105
105
106
106
Class <R > resClass = configuration .getCustomResourceClass ();
@@ -171,7 +171,7 @@ private CustomResourceEventSource createCustomResourceEventSource(
171
171
CustomResourceEventSource customResourceEventSource =
172
172
watchAllNamespaces
173
173
? CustomResourceEventSource .customResourceEventSourceForAllNamespaces (
174
- customResourceCache , client , generationAware , finalizer )
174
+ customResourceCache , client , generationAware , finalizer )
175
175
: CustomResourceEventSource .customResourceEventSourceForTargetNamespaces (
176
176
customResourceCache , client , targetNamespaces , generationAware , finalizer );
177
177
0 commit comments