feat: add userCredentials for nats (#19139)

This commit is contained in:
jiuker
2024-02-28 02:11:55 +08:00
committed by GitHub
parent 1dd8ef09a6
commit 0aae0180fb
3 changed files with 49 additions and 31 deletions

View File

@@ -446,6 +446,10 @@ func SetNotifyNATS(s config.Config, natsName string, cfg target.NATSArgs) error
Key: target.NATSUsername,
Value: cfg.Username,
},
config.KV{
Key: target.NATSUserCredentials,
Value: cfg.UserCredentials,
},
config.KV{
Key: target.NATSPassword,
Value: cfg.Password,