Skip to content

Commit f0bccda

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 044e43c commit f0bccda

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/controller/ControllerEventSource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public class ControllerEventSource<T extends HasMetadata>
4242
implements ResourceEventHandler<T> {
4343

4444
private static final Logger log = LoggerFactory.getLogger(ControllerEventSource.class);
45-
public static final String CONTROLLER_RESOURCE_EVENT_SOURCE = "ControllerResourceEventSource";
45+
public static final String NAME = "ControllerResourceEventSource";
4646

4747
private final Controller<T> controller;
4848

4949
@SuppressWarnings({"unchecked", "rawtypes"})
5050
public ControllerEventSource(Controller<T> controller) {
5151
super(
52-
CONTROLLER_RESOURCE_EVENT_SOURCE,
52+
NAME,
5353
controller.getCRClient(),
5454
controller.getConfiguration(),
5555
controller.getConfiguration().getInformerConfig().isComparableResourceVersions());
@@ -186,6 +186,6 @@ public void setOnDeleteFilter(OnDeleteFilter<? super T> onDeleteFilter) {
186186

187187
@Override
188188
public String name() {
189-
return CONTROLLER_RESOURCE_EVENT_SOURCE;
189+
return NAME;
190190
}
191191
}

operator-framework/src/test/java/io/javaoperatorsdk/operator/dependent/informerrelatedbehavior/InformerRelatedBehaviorITS.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private void assertInformerNotWatchingForAdditionalNamespace(Operator operator)
158158
InformerHealthIndicator controllerHealthIndicator =
159159
(InformerHealthIndicator)
160160
unhealthyEventSources
161-
.get(ControllerEventSource.CONTROLLER_RESOURCE_EVENT_SOURCE)
161+
.get(ControllerEventSource.NAME)
162162
.informerHealthIndicators()
163163
.get(additionalNamespace);
164164
assertThat(controllerHealthIndicator).isNotNull();
@@ -306,7 +306,7 @@ private void assertRuntimeInfoNoCRPermission(Operator operator) {
306306
.unhealthyEventSources()
307307
.get(INFORMER_RELATED_BEHAVIOR_TEST_RECONCILER);
308308
assertThat(unhealthyEventSources).isNotEmpty();
309-
assertThat(unhealthyEventSources.get(ControllerEventSource.CONTROLLER_RESOURCE_EVENT_SOURCE))
309+
assertThat(unhealthyEventSources.get(ControllerEventSource.NAME))
310310
.isNotNull();
311311
var informerHealthIndicators =
312312
operator
@@ -316,7 +316,7 @@ private void assertRuntimeInfoNoCRPermission(Operator operator) {
316316
assertThat(informerHealthIndicators).isNotEmpty();
317317
assertThat(
318318
informerHealthIndicators
319-
.get(ControllerEventSource.CONTROLLER_RESOURCE_EVENT_SOURCE)
319+
.get(ControllerEventSource.NAME)
320320
.informerHealthIndicators())
321321
.hasSize(1);
322322
}

0 commit comments

Comments
 (0)