1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/migrations/cluster-store/2.4.1.ts
Sebastian Malton 37d9681fee add MIME type detection in the migration
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2020-08-21 10:39:14 -04:00

15 lines
484 B
TypeScript

// Cleans up a store that had the state related data stored
import { migration } from "../migration-wrapper";
export default migration({
version: "2.4.1",
async run(store, log) {
for (const value of store) {
const contextName = value[0];
if (contextName === "__internal__") continue;
const cluster = value[1];
store.set(contextName, { kubeConfig: cluster.kubeConfig, icon: cluster.icon || null, preferences: cluster.preferences || {} });
}
}
})