File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1010public @interface Controller {
1111
1212 String NULL = "" ;
13+ String WATCH_CURRENT_NAMESPACE = "JOSDK_WATCH_CURRENT" ;
1314
1415 String name () default NULL ;
1516
Original file line number Diff line number Diff line change 11package io .javaoperatorsdk .operator .api .config ;
22
33import io .fabric8 .kubernetes .client .CustomResource ;
4+ import io .javaoperatorsdk .operator .api .Controller ;
45import java .util .Collections ;
56import java .util .Set ;
67
78public interface ControllerConfiguration <R extends CustomResource > {
8- String WATCH_CURRENT_NAMESPACE = "JOSDK_WATCH_CURRENT" ;
99
1010 String getName ();
1111
@@ -29,7 +29,7 @@ default boolean watchAllNamespaces() {
2929
3030 default boolean watchCurrentNamespace () {
3131 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 );
3333 }
3434
3535 default RetryConfiguration getRetryConfiguration () {
You can’t perform that action at this time.
0 commit comments