Skip to content

Commit

Permalink
kubelet/client: collapse transport wiring onto standard approach
Browse files Browse the repository at this point in the history
Signed-off-by: Monis Khan <mok@microsoft.com>

Kubernetes-commit: 754cb3d601a820180d19567c3600a789d77b0f07
  • Loading branch information
enj authored and k8s-publishing-bot committed Feb 6, 2023
1 parent 9c50465 commit d8b14dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (c *tlsTransportCache) get(config *Config) (http.RoundTripper, error) {

// If we use are reloading files, we need to handle certificate rotation properly
// TODO(jackkleeman): We can also add rotation here when config.HasCertCallback() is true
if config.TLS.ReloadTLSFiles {
if config.TLS.ReloadTLSFiles && tlsConfig != nil && tlsConfig.GetClientCertificate != nil {
dynamicCertDialer := certRotatingDialer(tlsConfig.GetClientCertificate, dial)
tlsConfig.GetClientCertificate = dynamicCertDialer.GetClientCertificate
dial = dynamicCertDialer.connDialer.DialContext
Expand Down

0 comments on commit d8b14dc

Please sign in to comment.