Support TLS auth for Kafka notification target (#8609)

This commit is contained in:
Aleksandr Petruhin authored and Harshavardhana committed 2019-12-05 15:31:46 -08:00
1 parent d8e3de0cae
commit d2dc964cb5
7 files changed
+84 -13

No files matched your search

+8
View File
@@ -42,6 +42,14 @@ func SetNotifyKafka(s config.Config, kName string, cfg target.KafkaArgs) error {
Key: target.KafkaQueueDir,
Value: cfg.QueueDir,
},
config.KV{
Key: target.KafkaClientTLSCert,
Value: cfg.TLS.ClientTLSCert,
},
config.KV{
Key: target.KafkaClientTLSKey,
Value: cfg.TLS.ClientTLSKey,
},
config.KV{
Key: target.KafkaQueueLimit,
Value: strconv.Itoa(int(cfg.QueueLimit)),