mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix TLS config in load test clients
This commit is contained in:
parent
bb9a12d6f8
commit
6cd03ab8ae
@ -377,9 +377,13 @@ func createClients(numberOfClients int) ([]clientset.Interface, []internalclient
|
|||||||
KeepAlive: 30 * time.Second,
|
KeepAlive: 30 * time.Second,
|
||||||
}).DialContext,
|
}).DialContext,
|
||||||
})
|
})
|
||||||
|
config.WrapTransport = transportConfig.WrapTransport
|
||||||
|
config.Dial = transportConfig.Dial
|
||||||
// Overwrite TLS-related fields from config to avoid collision with
|
// Overwrite TLS-related fields from config to avoid collision with
|
||||||
// Transport field.
|
// Transport field.
|
||||||
config.TLSClientConfig = restclient.TLSClientConfig{}
|
config.TLSClientConfig = restclient.TLSClientConfig{}
|
||||||
|
config.AuthProvider = nil
|
||||||
|
config.ExecProvider = nil
|
||||||
|
|
||||||
c, err := clientset.NewForConfig(config)
|
c, err := clientset.NewForConfig(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user