File tree 2 files changed +3
-2
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
public @interface Controller {
11
11
12
12
String NULL = "" ;
13
+ String WATCH_CURRENT_NAMESPACE = "JOSDK_WATCH_CURRENT" ;
13
14
14
15
String name () default NULL ;
15
16
Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .api .config ;
2
2
3
3
import io .fabric8 .kubernetes .client .CustomResource ;
4
+ import io .javaoperatorsdk .operator .api .Controller ;
4
5
import java .util .Collections ;
5
6
import java .util .Set ;
6
7
7
8
public interface ControllerConfiguration <R extends CustomResource > {
8
- String WATCH_CURRENT_NAMESPACE = "JOSDK_WATCH_CURRENT" ;
9
9
10
10
String getName ();
11
11
@@ -29,7 +29,7 @@ default boolean watchAllNamespaces() {
29
29
30
30
default boolean watchCurrentNamespace () {
31
31
final var namespaces = getNamespaces ();
32
- return namespaces .size () == 1 && namespaces .contains (WATCH_CURRENT_NAMESPACE );
32
+ return namespaces .size () == 1 && namespaces .contains (Controller . WATCH_CURRENT_NAMESPACE );
33
33
}
34
34
35
35
default RetryConfiguration getRetryConfiguration () {
You can’t perform that action at this time.
0 commit comments