Browse Source

bugfix haproxyTimeoutClient

master
Vladimir Smagin 1 year ago
parent
commit
61de3e0bb6
Signed by: 21h GPG Key ID: 13BCE12E5618F071
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pkg/controller/redis/redis_controller.go

+ 2
- 2
pkg/controller/redis/redis_controller.go View File

@ -311,8 +311,8 @@ backend bk_redis
}
haproxyTimeoutClient := 30
if instance.Spec.HAProxyTimeoutServer > 0 {
haproxyTimeoutClient = instance.Spec.HAProxyTimeoutServer
if instance.Spec.HAProxyTimeoutClient > 0 {
haproxyTimeoutClient = instance.Spec.HAProxyTimeoutClient
}
configHaproxyConfigData["haproxy.cfg"] = fmt.Sprintf(configHaproxyConfigData["haproxy.cfg"], haproxyTimeoutServer, haproxyTimeoutClient) + redisEndpoints


Loading…
Cancel
Save