Skip to content

Commit 705c9b1

Browse files
committed
feat: API to check if next reconciliation is imminent (#2272)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 4105421 commit 705c9b1

File tree

1 file changed

+6
-0
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler

1 file changed

+6
-0
lines changed

Diff for: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/DefaultContext.java

+6
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ public boolean isNextReconciliationImminent() {
5353
.isNextReconciliationImminent(ResourceID.fromResource(primaryResource));
5454
}
5555

56+
@Override
57+
public boolean isNextReconciliationImminent() {
58+
return controller.getEventProcessor()
59+
.isNextReconciliationImminent(ResourceID.fromResource(primaryResource));
60+
}
61+
5662
@Override
5763
public <R> Stream<R> getSecondaryResourcesAsStream(Class<R> expectedType) {
5864
return controller.getEventSourceManager().getEventSourcesFor(expectedType).stream()

0 commit comments

Comments
 (0)