Skip to content

Commit

Permalink
Merge pull request #27227 from loicmathieu/kafka-companion-confluent-…
Browse files Browse the repository at this point in the history
…registry

Add 'schema.registry.url' property to the Kafka Companion
  • Loading branch information
gsmet authored Aug 10, 2022
2 parents 1609e8b + 50f2d3f commit 2fe0ba5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ public void setIntegrationTestContext(DevServicesContext context) {
kafkaCompanion = new KafkaCompanion(bootstrapServers);
String apicurioUrl = devServicesProperties.get("mp.messaging.connector.smallrye-kafka.apicurio.registry.url");
if (apicurioUrl != null) {
// normally, the processor will set both property so it's safe to unconditionally load the confluent URL
String confluentUrl = devServicesProperties.get("mp.messaging.connector.smallrye-kafka.schema.registry.url");
kafkaCompanion.setCommonClientConfig(Map.of(
"apicurio.registry.url", apicurioUrl,
"apicurio.registry.auto-register", "true"));
"apicurio.registry.auto-register", "true",
"schema.registry.url", confluentUrl));
}
}
}
Expand Down

0 comments on commit 2fe0ba5

Please sign in to comment.