Skip to content

Commit 2babb8c

Browse files
csvirimetacosm
authored andcommitted
using controller config annotation, updated to josdk snapshot release
1 parent c08052b commit 2babb8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/deployment/src/main/java/io/quarkiverse/operatorsdk/deployment/QuarkusControllerConfigurationBuildStep.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ static QuarkusControllerConfiguration createConfiguration(
167167
Class<?> retryConfigurationClass = null;
168168
Class<? extends RateLimiter> rateLimiterClass = DefaultRateLimiter.class;
169169
Class<?> rateLimiterConfigurationClass = null;
170+
Long nullableInformerListLimit = null;
170171
if (controllerAnnotation != null) {
171172
final var intervalFromAnnotation = ConfigurationUtils.annotationValueOrDefault(
172173
controllerAnnotation, "maxReconciliationInterval", AnnotationValue::asNested,
@@ -202,6 +203,9 @@ static QuarkusControllerConfiguration createConfiguration(
202203
final var rateLimiterConfigurableInfo = configurableInfos.get(rateLimiterClass.getName());
203204
rateLimiterConfigurationClass = getConfigurationAnnotationClass(reconcilerInfo,
204205
rateLimiterConfigurableInfo);
206+
nullableInformerListLimit = ConfigurationUtils.annotationValueOrDefault(
207+
controllerAnnotation, "informerListLimit", AnnotationValue::asLong,
208+
() -> null);
205209
}
206210

207211
// extract the namespaces
@@ -249,7 +253,7 @@ static QuarkusControllerConfiguration createConfiguration(
249253
primaryAsResource.version(),
250254
configExtractor.generationAware(),
251255
resourceClass,
252-
null,
256+
nullableInformerListLimit,
253257
namespaces,
254258
wereNamespacesSet,
255259
getFinalizer(controllerAnnotation, resourceFullName),

0 commit comments

Comments
 (0)