master-merge fix

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-09-07 14:42:42 +03:00
1 parent f114497a64
commit bd7b5b4477
2 files changed
+2 -5

No files matched your search

+2 -3
View File
@@ -1,4 +1,4 @@
import { WorkspaceId, workspaceStore } from "./workspace-store";
import type { WorkspaceId } from "./workspace-store";
import path from "path";
import { app, ipcRenderer, remote } from "electron";
import { unlink } from "fs-extra";
@@ -13,7 +13,6 @@ import { saveToAppFiles } from "./utils/saveToAppFiles";
import { KubeConfig } from "@kubernetes/client-node";
import _ from "lodash";
import move from "array-move";
import { is } from "immer/dist/internal";
export interface ClusterIconUpload {
clusterId: string;
@@ -64,7 +63,7 @@ export class ClusterStore extends BaseStore<ClusterStoreModel> {
static embedCustomKubeConfig(clusterId: ClusterId, kubeConfig: KubeConfig | string): string {
const filePath = ClusterStore.getCustomKubeConfigPath(clusterId);
const fileContents = typeof kubeConfig == "string" ? kubeConfig : dumpConfigYaml(kubeConfig);
saveToAppFiles(filePath, fileContents, { mode: 0o600});
saveToAppFiles(filePath, fileContents, { mode: 0o600 });
return filePath;
}
@@ -23,8 +23,6 @@ import { clusterViewURL, getMatchedClusterId } from "./cluster-view.route";
import { DragDropContext, Droppable, Draggable, DropResult, DroppableProvided, DraggableProvided } from "react-beautiful-dnd";
import { dynamicPages } from "./register-page";
// fixme: allow to rearrange clusters with drag&drop
interface Props {
className?: IClassName;
}