mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +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{}
|
backends := []Backend{}
|
||||||
for server := range servers {
|
for server := range servers {
|
||||||
backends = append(backends, Backend{
|
backends = append(backends, Backend{
|
||||||
Server: server,
|
Server: server,
|
||||||
TLSConfig: tlsConfig,
|
// 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
|
return backends
|
||||||
|
Loading…
Reference in New Issue
Block a user