We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d899552 + 763215d commit 69b009fCopy full SHA for 69b009f
cmd/minikube/cmd/tunnel.go
@@ -76,7 +76,7 @@ var tunnelCmd = &cobra.Command{
76
}
77
78
79
- mustLockOrExit()
+ mustLockOrExit(cname)
80
defer cleanupLock()
81
82
// Tunnel uses the k8s clientset to query the API server for services in the LoadBalancerEmulator.
@@ -131,8 +131,8 @@ func cleanupLock() {
131
132
133
134
-func mustLockOrExit() {
135
- tunnelLockPath := filepath.Join(localpath.MiniPath(), ".tunnel_lock")
+func mustLockOrExit(profile string) {
+ tunnelLockPath := filepath.Join(localpath.Profile(profile), ".tunnel_lock")
136
137
lockHandle = fslock.New(tunnelLockPath)
138
err := lockHandle.TryLock()
0 commit comments