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-tursoandJanne Savolainen committed 2022-11-16 16:25:21 +02:00
1 parent ff8f8e8b66
commit 0b17a59ccd
2 files changed
+3 -18

No files matched your search

+1
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": {
@@ -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",