From afd7413849b78a3700ee74f86357f918aa9ecacc Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 6 Apr 2023 16:09:16 +0300 Subject: [PATCH] Add mutatingWebhookConfigurationsRouteComponentInjectable Signed-off-by: Alex Andreev --- ...nfigurations-route-component.injectable.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-route-component.injectable.ts diff --git a/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-route-component.injectable.ts b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-route-component.injectable.ts new file mode 100644 index 0000000000..9f16b45cc6 --- /dev/null +++ b/packages/core/src/renderer/components/+config-mutating-webhook-configurations/mutating-webhook-configurations-route-component.injectable.ts @@ -0,0 +1,24 @@ +/** + * 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 { + routeSpecificComponentInjectionToken, +} from "../../routes/route-specific-component-injection-token"; +import mutatingWebhookConfigurationsRouteInjectable + from "../../../common/front-end-routing/routes/cluster/config/mutating-webhook-configurations/mutating-webhook-configurations-route.injectable"; +import { MutatingWebhookConfigurations } from "./mutating-webhook-configurations"; + +const mutatingWebhookConfigurationsRouteComponentInjectable = getInjectable({ + id: "mutating-webhook-configuration-route-component", + + instantiate: (di) => ({ + route: di.inject(mutatingWebhookConfigurationsRouteInjectable), + Component: MutatingWebhookConfigurations, + }), + + injectionToken: routeSpecificComponentInjectionToken, +}); + +export default mutatingWebhookConfigurationsRouteComponentInjectable;