Skip to content

Commit

Permalink
Fix case of Kafka ServiceBinging properties
Browse files Browse the repository at this point in the history
Fixes quarkusio#16477

(cherry picked from commit fadc477)
  • Loading branch information
DuncanDoyle authored and gsmet committed Apr 14, 2021
1 parent 7650bc2 commit 8c439b5
Show file tree
Hide file tree
Showing 2 changed files 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 8c439b5

Please sign in to comment.