From 0b17a59ccdff02b07f4dbf0bdcabf6fda7cb2328 Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Wed, 16 Nov 2022 16:25:21 +0200 Subject: [PATCH] Migrate to Feature for "Catalog" over local implementation Co-authored-by: Janne Savolainen Signed-off-by: Iku-turso --- package.json | 1 + .../clusters.injectable.ts | 20 ++----------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 3db7566f25..12d05ef8a2 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/main/catalog/catalog-entities-from-features/clusters.injectable.ts b/src/main/catalog/catalog-entities-from-features/clusters.injectable.ts index 8f1c59bc6f..a197b20f93 100644 --- a/src/main/catalog/catalog-entities-from-features/clusters.injectable.ts +++ b/src/main/catalog/catalog-entities-from-features/clusters.injectable.ts @@ -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; - distribution: string; - - kubeconfigPath: string; - contextName: string; - clusterServerUrl: string; - version: string; -} - -export const clusterInjectionToken = getInjectionToken({ - id: "cluster-injection-token", -}); +import { clusterInjectionToken } from "@lensapp/catalog"; const clustersInjectable = getInjectable({ id: "clusters",