File tree 2 files changed +4
-7
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 10
10
import io .javaoperatorsdk .operator .processing .event .source .controller .ResourceEventFilter ;
11
11
import io .javaoperatorsdk .operator .processing .event .source .controller .ResourceEventFilters ;
12
12
13
+ @ SuppressWarnings ("rawtypes" )
13
14
public interface ControllerConfiguration <R extends HasMetadata > extends ResourceConfiguration <R > {
14
15
15
16
default String getName () {
16
17
return ReconcilerUtils .getDefaultReconcilerName (getAssociatedReconcilerClassName ());
17
18
}
18
19
19
- default String getResourceTypeName () {
20
- return ReconcilerUtils .getResourceTypeName (getResourceClass ());
21
- }
22
-
23
20
default String getFinalizer () {
24
21
return ReconcilerUtils .getDefaultFinalizerName (getResourceClass ());
25
22
}
@@ -51,7 +48,7 @@ default ResourceEventFilter<R> getEventFilter() {
51
48
return ResourceEventFilters .passthrough ();
52
49
}
53
50
54
- default List <? extends DependentResource > getDependentResources () {
51
+ default List <DependentResource > getDependentResources () {
55
52
return Collections .emptyList ();
56
53
}
57
54
Original file line number Diff line number Diff line change 4
4
import java .util .Set ;
5
5
6
6
import io .fabric8 .kubernetes .api .model .HasMetadata ;
7
- import io .fabric8 . kubernetes . client . CustomResource ;
7
+ import io .javaoperatorsdk . operator . ReconcilerUtils ;
8
8
import io .javaoperatorsdk .operator .api .reconciler .Constants ;
9
9
10
10
public interface ResourceConfiguration <R extends HasMetadata > {
11
11
12
12
default String getResourceTypeName () {
13
- return CustomResource . getCRDName (getResourceClass ());
13
+ return ReconcilerUtils . getResourceTypeName (getResourceClass ());
14
14
}
15
15
16
16
/**
You can’t perform that action at this time.
0 commit comments