Skip to content

Commit 8b4bfa5

Browse files
committed
remove check, minor improvement
1 parent 9b95037 commit 8b4bfa5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/informer/InformerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DefaultInformerConfiguration<R extends HasMetadata> extends
2222
protected DefaultInformerConfiguration(String labelSelector,
2323
Class<R> resourceClass,
2424
SecondaryToPrimaryMapper<R> secondaryToPrimaryMapper,
25-
Set<String> namespaces, Boolean followControllerNamespaceChanges) {
25+
Set<String> namespaces, boolean followControllerNamespaceChanges) {
2626
super(labelSelector, resourceClass, namespaces);
2727
this.followControllerNamespaceChanges = followControllerNamespaceChanges;
2828
this.secondaryToPrimaryMapper =

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/InformerManager.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ void initSources(MixedOperation<T, KubernetesResourceList<T>, Resource<T>> clien
7373
}
7474

7575
public void changeNamespaces(Set<String> namespaces) {
76-
if (ResourceConfiguration.allNamespacesWatched(namespaces)) {
77-
throw new OperatorException("This feature is only supported for ");
78-
}
79-
8076
var sourcesToRemove = sources.keySet().stream()
8177
.filter(k -> !namespaces.contains(k)).collect(Collectors.toSet());
8278
log.debug("Stopped informer {} for namespaces: {}", this, sourcesToRemove);

0 commit comments

Comments
 (0)