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> {
54
54
*/
55
55
boolean isNextReconciliationImminent ();
56
56
57
- Optional <ExpectationResult > expectationResult ();
57
+ Optional <ExpectationResult < P > > expectationResult ();
58
58
}
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public boolean isNextReconciliationImminent() {
121
121
}
122
122
123
123
@ Override
124
- public Optional <ExpectationResult > expectationResult () {
124
+ public Optional <ExpectationResult < P > > expectationResult () {
125
125
return Optional .empty ();
126
126
}
127
127
Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .api .reconciler .expectation ;
2
2
3
- public class ExpectationResult {
3
+ import io .fabric8 .kubernetes .api .model .HasMetadata ;
4
+
5
+ public class ExpectationResult <P extends HasMetadata > {
4
6
5
7
private ExpectationStatus status ;
6
8
9
+ private Expectation <P > expectation ;
10
+
7
11
public ExpectationResult (ExpectationStatus status ) {
8
12
this .status = status ;
9
13
}
10
14
11
15
public ExpectationStatus getStatus () {
12
16
return status ;
13
17
}
18
+
19
+ public Expectation <P > getExpectation () {
20
+ return expectation ;
21
+ }
14
22
}
You can’t perform that action at this time.
0 commit comments