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:
parent
ff8f8e8b66
commit
0b17a59ccd
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user