File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -54,5 +54,5 @@ public interface Context<P extends HasMetadata> extends CacheAware<P> {
5454 */
5555 boolean isNextReconciliationImminent ();
5656
57- Optional <ExpectationResult > expectationResult ();
57+ Optional <ExpectationResult < P > > expectationResult ();
5858}
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public boolean isNextReconciliationImminent() {
121121 }
122122
123123 @ Override
124- public Optional <ExpectationResult > expectationResult () {
124+ public Optional <ExpectationResult < P > > expectationResult () {
125125 return Optional .empty ();
126126 }
127127
Original file line number Diff line number Diff line change 11package io .javaoperatorsdk .operator .api .reconciler .expectation ;
22
3- public class ExpectationResult {
3+ import io .fabric8 .kubernetes .api .model .HasMetadata ;
4+
5+ public class ExpectationResult <P extends HasMetadata > {
46
57 private ExpectationStatus status ;
68
9+ private Expectation <P > expectation ;
10+
711 public ExpectationResult (ExpectationStatus status ) {
812 this .status = status ;
913 }
1014
1115 public ExpectationStatus getStatus () {
1216 return status ;
1317 }
18+
19+ public Expectation <P > getExpectation () {
20+ return expectation ;
21+ }
1422}
You can’t perform that action at this time.
0 commit comments