apis / clusters-menu refactoring

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-14 15:04:26 +03:00
1 parent 4e88715b8d
commit fbcb2fd281
12 files changed
+72 -50

No files matched your search

@@ -22,6 +22,7 @@ export default migration({
try {
// take the embedded kubeconfig and dump it into a file
cluster.kubeConfigPath = writeEmbeddedKubeConfig(cluster.id, cluster.kubeConfig)
delete cluster.kubeConfig;
migratedClusters.push(cluster)
} catch (error) {
log(`Failed to migrate Kubeconfig for cluster "${cluster.id}"`, error)