mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
introducing vpa resources (#7004)
* introducing vpa resources (as hpa resources to start) vpa spec (WIP) adding real vpa fields scss files, and updates after rebase on master scss update tweaks to vpa api definition putting more fields into the vpa list adding vpa details, fixing vpa spec implementation (WIP) vpa details page done merge conflicts Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com> * moved files after monorepo merge Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com> * address review comments, added vpa endpoint to endpoints export list Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com> * deprecate HPAStore in favour of HorizontalPodAuotoscalerStore Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com> --------- Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
1 parent
e196ca56eb
commit
a8a59ff191
41 files changed
+796
-9
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 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 verticalPodAutoscalersRouteInjectable from "./vertical-pod-autoscalers-route.injectable";
|
||||
import { navigateToRouteInjectionToken } from "../../../../navigate-to-route-injection-token";
|
||||
|
||||
const navigateToVerticalPodAutoscalersInjectable = getInjectable({
|
||||
id: "navigate-to-vertical-pod-autoscalers",
|
||||
|
||||
instantiate: (di) => {
|
||||
const navigateToRoute = di.inject(navigateToRouteInjectionToken);
|
||||
const route = di.inject(verticalPodAutoscalersRouteInjectable);
|
||||
|
||||
return () => navigateToRoute(route);
|
||||
},
|
||||
});
|
||||
|
||||
export default navigateToVerticalPodAutoscalersInjectable;
|
||||
+24
@@ -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 { shouldShowResourceInjectionToken } from "../../../../../cluster-store/allowed-resources-injection-token";
|
||||
import { frontEndRouteInjectionToken } from "../../../../front-end-route-injection-token";
|
||||
|
||||
const verticalPodAutoscalersRouteInjectable = getInjectable({
|
||||
id: "vertical-pod-autoscalers-route",
|
||||
|
||||
instantiate: (di) => ({
|
||||
path: "/vpa",
|
||||
clusterFrame: true,
|
||||
isEnabled: di.inject(shouldShowResourceInjectionToken, {
|
||||
apiName: "verticalpodautoscalers",
|
||||
group: "autoscaling.k8s.io",
|
||||
}),
|
||||
}),
|
||||
|
||||
injectionToken: frontEndRouteInjectionToken,
|
||||
});
|
||||
|
||||
export default verticalPodAutoscalersRouteInjectable;
|
||||
Reference in new issue
Block a user