Skip to content

Commit b31f2bd

Browse files
committed
improve: add InformerEventSourceConfiguration withNamespaces overloaded version
Signed-off-by: Attila Mészáros <[email protected]>
1 parent f51c65b commit b31f2bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ public Builder<R> withNamespaces(Set<String> namespaces) {
194194
return this;
195195
}
196196

197+
public Builder<R> withNamespaces(String... namespaces) {
198+
config.withNamespaces(Set.of(namespaces));
199+
return this;
200+
}
201+
197202
public Builder<R> withNamespacesInheritedFromController() {
198203
withNamespaces(SAME_AS_CONTROLLER_NAMESPACES_SET);
199204
return this;

0 commit comments

Comments
 (0)