mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
12 lines
433 B
TypeScript
12 lines
433 B
TypeScript
// Cleans up a store that had the state related data stored
|
|
export function migration(store: any) {
|
|
console.log("CLUSTER STORE, MIGRATION: 2.4.1");
|
|
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 || {} });
|
|
}
|
|
}
|