File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ package io .javaoperatorsdk .operator .api .reconciler ;
2
+
3
+ import java .lang .annotation .ElementType ;
4
+ import java .lang .annotation .Retention ;
5
+ import java .lang .annotation .RetentionPolicy ;
6
+ import java .lang .annotation .Target ;
7
+
8
+ /**
9
+ * An annotation for downstream tooling to ignore the annotated {@link Reconciler}. This allows to
10
+ * mark some implementations as not provided by user and should therefore be ignored by processes
11
+ * external to the SDK itself.
12
+ */
13
+ @ Retention (RetentionPolicy .RUNTIME )
14
+ @ Target ({ElementType .TYPE })
15
+ public @interface Ignore {
16
+
17
+ }
Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .processing ;
2
2
3
+ import io .javaoperatorsdk .operator .api .reconciler .Ignore ;
3
4
import java .util .LinkedList ;
4
5
import java .util .List ;
5
6
import java .util .Objects ;
34
35
import io .javaoperatorsdk .operator .processing .event .source .EventSource ;
35
36
36
37
@ SuppressWarnings ({"rawtypes" , "unchecked" })
38
+ @ Ignore
37
39
public class Controller <R extends HasMetadata > implements Reconciler <R >,
38
40
LifecycleAware , EventSourceInitializer <R > {
39
41
Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .processing .dependent ;
2
2
3
+ import io .javaoperatorsdk .operator .api .reconciler .Ignore ;
3
4
import java .util .ArrayList ;
4
5
import java .util .List ;
5
6
23
24
import io .javaoperatorsdk .operator .processing .event .source .EventSource ;
24
25
25
26
@ SuppressWarnings ({"rawtypes" , "unchecked" })
27
+ @ Ignore
26
28
public class DependentResourceManager <R extends HasMetadata > implements EventSourceInitializer <R >,
27
29
EventSourceContextInjector , Reconciler <R > {
28
30
You can’t perform that action at this time.
0 commit comments