Skip to content

Commit c31eab1

Browse files
committed
wip
1 parent 4d274b4 commit c31eab1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface ResourceIDMapper<R, ID> {
3737
* @return static id mapper, all resources are mapped for same id.
3838
* @param <R> secondary resource type
3939
*/
40-
static <R> ResourceIDMapper<R, String> singleResourceCacheKeyMapper() {
40+
static <R> ResourceIDMapper<R, String> singleResourceResourceIDMapper() {
4141
return r -> "id";
4242
}
4343

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/polling/PollingConfigurationBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public PollingConfigurationBuilder(
3131
this.period = period;
3232
}
3333

34-
public PollingConfigurationBuilder<R, ID> withCacheKeyMapper(
34+
public PollingConfigurationBuilder<R, ID> withResourceIDMapper(
3535
ResourceIDMapper<R, ID> resourceIDMapper) {
3636
this.resourceIDMapper = resourceIDMapper;
3737
return this;

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/perresourceeventsource/PerResourcePollingEventSourceTestReconciler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public List<EventSource<?, PerResourceEventSourceCustomResource>> prepareEventSo
6767
return Set.of(UUID.randomUUID().toString());
6868
},
6969
Duration.ofMillis(POLL_PERIOD))
70-
.withResourceIDMapper(ResourceIDMapper.singleResourceCacheKeyMapper())
70+
.withResourceIDMapper(ResourceIDMapper.singleResourceResourceIDMapper())
7171
.build());
7272
return List.of(eventSource);
7373
}

operator-framework/src/test/java/io/javaoperatorsdk/operator/dependent/multiplemanagedexternaldependenttype/MultipleManagedExternalDependentResourceReconciler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public int getNumberOfExecutions() {
9999
new PollingConfigurationBuilder<ExternalResource, String>(
100100
fetcher, Duration.ofMillis(1000L))
101101
.withName(EVENT_SOURCE_NAME)
102-
.withCacheKeyMapper(ExternalResource::getId)
102+
.withResourceIDMapper(ExternalResource::getId)
103103
.build());
104104

105105
return List.of(pollingEventSource);

0 commit comments

Comments
 (0)