mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix race in healthchecking etcds leading to crashes
This commit is contained in:
parent
e267f46c8e
commit
38387aec0d
@ -321,8 +321,10 @@ func (s *DefaultStorageFactory) Backends() []Backend {
|
||||
backends := []Backend{}
|
||||
for server := range servers {
|
||||
backends = append(backends, Backend{
|
||||
Server: server,
|
||||
TLSConfig: tlsConfig,
|
||||
Server: server,
|
||||
// We can't share TLSConfig across different backends to avoid races.
|
||||
// For more details see: http://pr.k8s.io/59338
|
||||
TLSConfig: tlsConfig.Clone(),
|
||||
})
|
||||
}
|
||||
return backends
|
||||
|
Loading…
Reference in New Issue
Block a user