Skip to content

Commit 39d0687

Browse files
committed
fix: resource id not created again
1 parent 51f0d4e commit 39d0687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/TemporaryResourceCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public synchronized void putAddedResource(T newResource) {
5353
ResourceID resourceID = ResourceID.fromResource(newResource);
5454
if (managedInformerEventSource.get(resourceID).isEmpty()) {
5555
log.debug("Putting resource to cache with ID: {}", resourceID);
56-
cache.put(ResourceID.fromResource(newResource), newResource);
56+
cache.put(resourceID, newResource);
5757
} else {
5858
log.debug("Won't put resource into cache found already informer cache: {}", resourceID);
5959
}

0 commit comments

Comments
 (0)