mirror of https://github.com/k3s-io/k3s
Merge pull request #60069 from wojtek-t/fix_components_statuses_crash
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix race in healthchecking etcds leading to crashes Fix https://github.com/kubernetes/kubernetes/issues/59338pull/6/head
commit
aa02c0f519
|
@ -322,7 +322,9 @@ func (s *DefaultStorageFactory) Backends() []Backend {
|
|||
for server := range servers {
|
||||
backends = append(backends, Backend{
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue