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) {
4444 default Set <String > getEffectiveNamespaces () {
4545 var targetNamespaces = getNamespaces ();
4646 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 ());
4953 }
5054 return targetNamespaces ;
5155 }
You can’t perform that action at this time.
0 commit comments