File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ func getConfig() (saramaConfig *sarama.Config) {
40
40
saramaConfig .Net .SASL .User = cluster .SASL .Username
41
41
saramaConfig .Net .SASL .Password = cluster .SASL .Password
42
42
}
43
+ saramaConfig .Net .SASL .Version = cluster .SASL .Version
43
44
}
44
45
if cluster .TLS != nil && cluster .SecurityProtocol != "SASL_SSL" {
45
46
saramaConfig .Net .TLS .Enable = true
Original file line number Diff line number Diff line change
1
+ clusters :
2
+ - name : test
3
+ brokers :
4
+ - localhost:9092
5
+ SASL :
6
+ mechanism : PLAIN
7
+ username : admin
8
+ password : mypasswordisnotsosimple
9
+ version : 1
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ type SASL struct {
17
17
ClientSecret string `yaml:"clientSecret"`
18
18
TokenURL string `yaml:"tokenURL"`
19
19
Token string `yaml:"token"`
20
+ Version int16 `yaml:"version"`
20
21
}
21
22
22
23
type TLS struct {
You can’t perform that action at this time.
0 commit comments