From f9bb2d9ef41191e235279baa955d2d577075ed80 Mon Sep 17 00:00:00 2001 From: Bob Sira Date: Tue, 4 Nov 2025 15:00:24 +0000 Subject: [PATCH] kubeconfig: normalize generated cert paths to forward slashes --- pkg/minikube/kubeconfig/kubeconfig.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/minikube/kubeconfig/kubeconfig.go b/pkg/minikube/kubeconfig/kubeconfig.go index 29a9419f0f..5ed754ea24 100644 --- a/pkg/minikube/kubeconfig/kubeconfig.go +++ b/pkg/minikube/kubeconfig/kubeconfig.go @@ -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. func populateCerts(kcs *Settings, cfg api.Config, contextName string) { - lp := localpath.Profile(contextName) - gp := localpath.MiniPath() + gp := filepath.ToSlash(localpath.MiniPath()) + lp := filepath.ToSlash(localpath.Profile(contextName)) kcs.CertificateAuthority = path.Join(gp, "ca.crt") if cluster, ok := cfg.Clusters[contextName]; ok {