File tree Expand file tree Collapse file tree 5 files changed +3
-50
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler Expand file tree Collapse file tree 5 files changed +3
-50
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
import io .javaoperatorsdk .operator .api .config .ConfigurationService ;
6
6
import io .javaoperatorsdk .operator .api .reconciler .dependent .ManagedDependentResourceContext ;
7
7
8
- public interface Context extends AttributeHolder {
8
+ public interface Context {
9
9
10
10
Optional <RetryInfo > getRetryInfo ();
11
11
@@ -15,13 +15,6 @@ default <T> Optional<T> getSecondaryResource(Class<T> expectedType) {
15
15
16
16
<T > Optional <T > getSecondaryResource (Class <T > expectedType , String eventSourceName );
17
17
18
- @ Override
19
- default <T > T getMandatory (Object key , Class <T > expectedType ) {
20
- return get (key , expectedType ).orElseThrow (() -> new IllegalStateException (
21
- "Mandatory attribute (key: " + key + ", type: " + expectedType .getName ()
22
- + ") is missing or not of the expected type" ));
23
- }
24
-
25
18
ConfigurationService getConfigurationService ();
26
19
27
20
ManagedDependentResourceContext managedDependentResourceContext ();
Original file line number Diff line number Diff line change 7
7
import io .javaoperatorsdk .operator .api .reconciler .dependent .ManagedDependentResourceContext ;
8
8
import io .javaoperatorsdk .operator .processing .Controller ;
9
9
10
- public class DefaultContext <P extends HasMetadata > extends MapAttributeHolder implements Context {
10
+ public class DefaultContext <P extends HasMetadata > implements Context {
11
11
12
12
private final RetryInfo retryInfo ;
13
13
private final Controller <P > controller ;
Original file line number Diff line number Diff line change 11
11
*
12
12
* @param <P> the type associated with the primary resource that is handled by your reconciler
13
13
*/
14
- public class EventSourceContext <P extends HasMetadata > extends MapAttributeHolder {
14
+ public class EventSourceContext <P extends HasMetadata > {
15
15
16
16
private final ResourceCache <P > primaryCache ;
17
17
private final ConfigurationService configurationService ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments