Skip to content

Commit

Permalink
Fixes #16477. Quarkus Kafka client uses camelCase binding files.
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanDoyle committed Apr 13, 2021
1 parent bff037b commit 84bab15
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ public Optional<ServiceBindingConfigSource> convert(List<ServiceBinding> service
Map<String, String> properties = new HashMap<>();
ServiceBinding binding = matchingByType.get();

String bootstrapServers = binding.getProperties().get("bootstrapservers");
String bootstrapServers = binding.getProperties().get("bootstrapServers");
if (bootstrapServers == null) {
bootstrapServers = binding.getProperties().get("bootstrap-servers");
}
if (bootstrapServers != null) {
properties.put("kafka.bootstrap.servers", bootstrapServers);
}

String securityProtocol = binding.getProperties().get("securityprotocol");
String securityProtocol = binding.getProperties().get("securityProtocol");
if (securityProtocol != null) {
properties.put("kafka.security.protocol", securityProtocol);
}

String saslMechanism = binding.getProperties().get("saslmechanism");
String saslMechanism = binding.getProperties().get("saslMechanism");
if (saslMechanism != null) {
properties.put("kafka.sasl.mechanism", saslMechanism);
}
Expand Down

0 comments on commit 84bab15

Please sign in to comment.