Files
lens/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.ts
T

15 lines
465 B
TypeScript

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getActiveClusterEntity } from "../../../api/catalog-entity-registry";
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
const clusterInjectable = getInjectable({
instantiate: () => getActiveClusterEntity(),
lifecycle: lifecycleEnum.transient,
});
export default clusterInjectable;