You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f92152
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/content/en/docs/documentation/eventing.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,6 +348,30 @@ See
348
348
also [CaffeineBoundedItemStores](https://github.com/operator-framework/java-operator-sdk/blob/main/caffeine-bounded-cache-support/src/main/java/io/javaoperatorsdk/operator/processing/event/source/cache/CaffeineBoundedItemStores.java)
349
349
for more details.
350
350
351
+
### Removing the Namespace Index
352
+
353
+
Informers keep an index from namespace to the resources cached for it. JOSDK never reads that index,
354
+
only the ones registered explicitly through `IndexerResourceCache.addIndexers(..)`, so it can be
|`josdk.controller.<name>.informer.shard-selector`|`String`| Shard selector for the primary resource informer (alias for `shard-selector`) |
386
386
|`josdk.controller.<name>.informer.list-limit`|`Long`| Page size for paginated informer list requests; omit for no pagination |
387
387
|`josdk.controller.<name>.informer.comparable-resource-versions`|`Boolean`| Whether the resource versions of the primary resource can be treated as integers and thus compared |
388
+
|`josdk.controller.<name>.informer.without-namespace-index`|`Boolean`| Removes the namespace index the informer maintains; defaults to `false`. See [Removing the Namespace Index](../eventing#removing-the-namespace-index)|
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ControllerConfigurationOverrider.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -222,6 +222,18 @@ public ControllerConfigurationOverrider<R> withInformerListLimit(Long informerLi
222
222
returnthis;
223
223
}
224
224
225
+
/**
226
+
* Whether to remove the namespace index the underlying informer maintains by default. Note that
227
+
* event sources that disagree on this setting do not share an informer.
228
+
*
229
+
* @param withoutNamespaceIndex true to remove the namespace index, false (the default) to keep it
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/informer/InformerConfiguration.java
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ public class InformerConfiguration<R extends HasMetadata> {
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/informer/InformerEventSourceConfiguration.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -292,6 +292,11 @@ public Builder<R> withComparableResourceVersion(boolean comparableResourceVersio
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/InformerManager.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/pool/AbstractInformerPool.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ public void setConfigurationService(ConfigurationService configurationService) {
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/pool/DefaultInformerPool.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,14 @@ public <R extends HasMetadata> SharedIndexInformer<R> getInformer(
0 commit comments