mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Export clusterFrameContextForNamespacedResourcesInjectionToken
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
parent
fc3f5d3c45
commit
99b061a6ea
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
import type { ClusterContext } from "./cluster-frame-context";
|
||||
|
||||
export const clusterFrameContextForNamespacedResourcesInjectionToken = getInjectionToken<ClusterContext>({
|
||||
id: "cluster-frame-context-for-namespaced-resources-injection-token",
|
||||
});
|
||||
@ -9,6 +9,7 @@ import hostedClusterInjectable from "./hosted-cluster.injectable";
|
||||
import assert from "assert";
|
||||
import { computed } from "mobx";
|
||||
import selectedNamespacesStorageInjectable from "../../features/namespace-filtering/renderer/storage.injectable";
|
||||
import { clusterFrameContextForNamespacedResourcesInjectionToken } from "./for-namespaced-resources-injection-token";
|
||||
|
||||
const clusterFrameContextForNamespacedResourcesInjectable = getInjectable({
|
||||
id: "cluster-frame-context-for-namespaced-resources",
|
||||
@ -67,6 +68,7 @@ const clusterFrameContextForNamespacedResourcesInjectable = getInjectable({
|
||||
},
|
||||
};
|
||||
},
|
||||
injectionToken: clusterFrameContextForNamespacedResourcesInjectionToken,
|
||||
});
|
||||
|
||||
export default clusterFrameContextForNamespacedResourcesInjectable;
|
||||
|
||||
@ -24,3 +24,4 @@ export * as rendererExtensionApi from "../extensions/renderer-api";
|
||||
export * as commonExtensionApi from "../extensions/common-api";
|
||||
export { metricsFeature } from "../features/metrics/metrics-feature";
|
||||
export { podMetricsApiInjectionToken } from "../common/k8s-api/endpoints/pod-metrics-api-injection-token";
|
||||
export { clusterFrameContextForNamespacedResourcesInjectionToken } from "./cluster-frame-context/for-namespaced-resources-injection-token";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user