mirror of https://github.com/helm/helm
When opts.CertFile and opts.KeyFile are empty, cert remains nil. Previously, ClientConfig unconditionally dereferenced cert when constructing tls.Config, causing a runtime panic when only CaCertFile or InsecureSkipVerify was configured. This conditions the assignment of cfg.Certificates on cert != nil and adds a unit test covering the scenario. Fixes #32674 Signed-off-by: Cosmin Neculcea <cosminneculcea60@gmail.com>pull/32679/head
parent
cddb9c4138
commit
64ce98d1c6
Loading…
Reference in new issue