@@ -66,6 +66,7 @@ public DefaultRateLimiter(Duration refreshPeriod, int limitForPeriod) {
66
66
private final boolean generationAware ;
67
67
private final boolean statusPresentAndNotVoid ;
68
68
private final Class <R > resourceClass ;
69
+ private final Optional <Long > informerListLimit ;
69
70
private final ResourceEventFilter <R > eventFilter ;
70
71
private final Optional <Duration > maxReconciliationInterval ;
71
72
private final Optional <OnAddFilter <? super R >> onAddFilter ;
@@ -93,7 +94,9 @@ public QuarkusControllerConfiguration(
93
94
String name ,
94
95
String resourceTypeName ,
95
96
String crVersion , boolean generationAware ,
96
- Class resourceClass , Set <String > namespaces ,
97
+ Class resourceClass ,
98
+ Long nullableInformerListLimit ,
99
+ Set <String > namespaces ,
97
100
boolean wereNamespacesSet ,
98
101
String finalizerName , String labelSelector ,
99
102
boolean statusPresentAndNotVoid , ResourceEventFilter eventFilter ,
@@ -109,6 +112,7 @@ public QuarkusControllerConfiguration(
109
112
this .crVersion = crVersion ;
110
113
this .generationAware = generationAware ;
111
114
this .resourceClass = resourceClass ;
115
+ this .informerListLimit = Optional .ofNullable (nullableInformerListLimit );
112
116
this .dependentsMetadata = dependentsMetadata ;
113
117
this .workflow = workflow ;
114
118
this .retryConfiguration = ControllerConfiguration .super .getRetryConfiguration ();
@@ -148,6 +152,17 @@ public Class<R> getResourceClass() {
148
152
return resourceClass ;
149
153
}
150
154
155
+ @ Override
156
+ public Optional <Long > getInformerListLimit () {
157
+ return informerListLimit ;
158
+ }
159
+
160
+ @ SuppressWarnings ("unused" )
161
+ // this is needed by Quarkus for the RecordableConstructor
162
+ public Long getNullableInformerListLimit () {
163
+ return informerListLimit .orElse (null );
164
+ }
165
+
151
166
@ Override
152
167
public String getName () {
153
168
return name ;
0 commit comments