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

Migrate to Feature for "Catalog" over local implementation

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso 2022-11-16 16:25:21 +02:00
parent ff8f8e8b66
commit 0b17a59ccd
2 changed files with 3 additions and 18 deletions

View File

@ -296,6 +296,7 @@
"@lensapp/utils": "0.0.1",
"@lensapp/composite": "0.0.1",
"@lensapp/preferences": "0.0.1",
"@lensapp/catalog": "0.0.1",
"@lensapp/feature-core": "0.0.1"
},
"devDependencies": {

View File

@ -2,26 +2,10 @@
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
import { getInjectable } from "@ogre-tools/injectable";
import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-for-mobx";
import { computed } from "mobx";
export interface ClusterDto {
id: string;
name: string;
source: string;
labels: Record<string, string>;
distribution: string;
kubeconfigPath: string;
contextName: string;
clusterServerUrl: string;
version: string;
}
export const clusterInjectionToken = getInjectionToken<ClusterDto>({
id: "cluster-injection-token",
});
import { clusterInjectionToken } from "@lensapp/catalog";
const clustersInjectable = getInjectable({
id: "clusters",