Skip to content

Commit 407a241

Browse files
committed
fix: make QuarkusConfigurationService also provide ConfigurationService
Synthetic beans are very low-level so they only register their own type by default. Using addType allows to record the fact that the bean also produces instances of its supertypes / implemented interfaces, if needed.
1 parent 736da3c commit 407a241

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quarkus-extension/deployment/src/main/java/io/javaoperatorsdk/quarkus/extension/deployment/QuarkusExtensionProcessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void createConfigurationService(BuildProducer<SyntheticBeanBuildItem> syntheticB
8383
final var supplier = recorder.configurationServiceSupplier(controllerConfigs, clientBuildItem.getClient());
8484
syntheticBeanBuildItemBuildProducer.produce(SyntheticBeanBuildItem.configure(QuarkusConfigurationService.class)
8585
.scope(Singleton.class)
86+
.addType(ConfigurationService.class)
8687
.setRuntimeInit()
8788
.supplier(supplier)
8889
.done());

0 commit comments

Comments
 (0)