pull/21845/merge
Bob Sira 2025-11-13 21:56:57 +00:00 committed by GitHub
commit 2e36a63375
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -157,8 +157,8 @@ func configIssues(cfg *api.Config, contextName string, address string) []error {
// populateCerts retains certs already defined in kubeconfig or sets default ones for those missing. // populateCerts retains certs already defined in kubeconfig or sets default ones for those missing.
func populateCerts(kcs *Settings, cfg api.Config, contextName string) { func populateCerts(kcs *Settings, cfg api.Config, contextName string) {
lp := localpath.Profile(contextName) gp := filepath.ToSlash(localpath.MiniPath())
gp := localpath.MiniPath() lp := filepath.ToSlash(localpath.Profile(contextName))
kcs.CertificateAuthority = path.Join(gp, "ca.crt") kcs.CertificateAuthority = path.Join(gp, "ca.crt")
if cluster, ok := cfg.Clusters[contextName]; ok { if cluster, ok := cfg.Clusters[contextName]; ok {