mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Ignore clusters without kubeconfigPath on kubeconfig sync migration (#3707)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
6fdb2f0b58
commit
36b64f73bc
@ -40,6 +40,9 @@ export default {
|
||||
syncPaths.add(path.join(os.homedir(), ".kube"));
|
||||
|
||||
for (const cluster of clusters) {
|
||||
if (!cluster.kubeConfigPath) {
|
||||
continue;
|
||||
}
|
||||
const dirOfKubeconfig = path.dirname(cluster.kubeConfigPath);
|
||||
|
||||
if (dirOfKubeconfig === storedKubeConfigFolder()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user