1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix imports

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-07-02 11:13:43 +03:00
parent b051623056
commit ef32476d49

View File

@ -128,8 +128,7 @@ import ClustersMixin from "@/_vue/mixins/ClustersMixin";
import * as path from "path"
import fs from 'fs'
import { v4 as uuidv4 } from 'uuid';
import * as clusterStore from "../../common/cluster-store"
import { writeEmbeddedKubeConfig} from "../../common/app-utils"
import { writeEmbeddedKubeConfig} from "../../../common/utils/kubeconfig"
class ClusterAccessError extends Error {}
@ -225,8 +224,7 @@ export default {
const clusterId = uuidv4();
// We need to store the kubeconfig to "app-home"/
if (this.kubecontext === "custom") {
// TODO Call "writeEmbeddedKubeConfig"
this.filepath = clusterStore.writeEmbeddedKubeConfig(clusterId, this.clusterconfig)
this.filepath = writeEmbeddedKubeConfig(clusterId, this.clusterconfig)
}
const clusterInfo = {
id: clusterId,