mirror of https://github.com/k3s-io/k3s
Merge pull request #73500 from shyamjvs/tls-config-fix-scale-tests
Fix TLS config in load test clientspull/564/head
commit
233f3e7b94
|
@ -377,9 +377,13 @@ func createClients(numberOfClients int) ([]clientset.Interface, []internalclient
|
|||
KeepAlive: 30 * time.Second,
|
||||
}).DialContext,
|
||||
})
|
||||
config.WrapTransport = transportConfig.WrapTransport
|
||||
config.Dial = transportConfig.Dial
|
||||
// Overwrite TLS-related fields from config to avoid collision with
|
||||
// Transport field.
|
||||
config.TLSClientConfig = restclient.TLSClientConfig{}
|
||||
config.AuthProvider = nil
|
||||
config.ExecProvider = nil
|
||||
|
||||
c, err := clientset.NewForConfig(config)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue