diff --git a/src/migrations/user-store/5.0.3-beta.1.ts b/src/migrations/user-store/5.0.3-beta.1.ts index 728cf6a395..05a1767f08 100644 --- a/src/migrations/user-store/5.0.3-beta.1.ts +++ b/src/migrations/user-store/5.0.3-beta.1.ts @@ -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()) {