/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import { getInjectable } from "@ogre-tools/injectable"; import assert from "assert"; import { createStoresAndApisInjectionToken } from "../create-stores-apis.token"; import { ClusterRoleBindingApi } from "./cluster-role-binding.api"; const clusterRoleBindingApiInjectable = getInjectable({ id: "cluster-role-binding-api", instantiate: (di) => { assert(di.inject(createStoresAndApisInjectionToken), "clusterRoleBindingApi is only accessible in certain environments"); return new ClusterRoleBindingApi(); }, }); export default clusterRoleBindingApiInjectable;