File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,12 @@ static boolean currentNamespaceWatched(Set<String> namespaces) {
44
44
default Set <String > getEffectiveNamespaces () {
45
45
var targetNamespaces = getNamespaces ();
46
46
if (watchCurrentNamespace ()) {
47
- targetNamespaces =
48
- Collections .singleton (getConfigurationService ().getClientConfiguration ().getNamespace ());
47
+ final var parent = getConfigurationService ();
48
+ if (parent == null ) {
49
+ throw new IllegalStateException (
50
+ "Parent ConfigurationService must be set before calling this method" );
51
+ }
52
+ targetNamespaces = Collections .singleton (parent .getClientConfiguration ().getNamespace ());
49
53
}
50
54
return targetNamespaces ;
51
55
}
You can’t perform that action at this time.
0 commit comments