mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Replication Controllers (new resource view) (#7154)
* New resource view: ReplicationController -- scaffolding files Signed-off-by: Roman <ixrock@gmail.com> * fix: inappropriate names after copy-pasting Signed-off-by: Roman <ixrock@gmail.com> * update replication controller api types/spec, fix menu title Signed-off-by: Roman <ixrock@gmail.com> * items list + details list views (added contents from replication controllers), lint fixes Signed-off-by: Roman <ixrock@gmail.com> * allow to scale replication controllers Signed-off-by: Roman <ixrock@gmail.com> * switched for scaling replicas with `Slider` component instead of `Buttons+Input` Signed-off-by: Roman <ixrock@gmail.com> --------- Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
de6f339fec
commit
54e874f646
17 files changed
+610
-1
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 replicationControllersRouteInjectable from "./replicationcontrollers-route.injectable";
|
||||
import { navigateToRouteInjectionToken } from "../../../../navigate-to-route-injection-token";
|
||||
|
||||
const navigateToReplicationControllersInjectable = getInjectable({
|
||||
id: "navigate-to-replicationcontrollers",
|
||||
|
||||
instantiate: (di) => {
|
||||
const navigateToRoute = di.inject(navigateToRouteInjectionToken);
|
||||
const route = di.inject(replicationControllersRouteInjectable);
|
||||
|
||||
return () => navigateToRoute(route);
|
||||
},
|
||||
});
|
||||
|
||||
export default navigateToReplicationControllersInjectable;
|
||||
+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 replicationControllersRouteInjectable = getInjectable({
|
||||
id: "replicationcontrollers-route",
|
||||
|
||||
instantiate: (di) => ({
|
||||
path: "/replicationcontrollers",
|
||||
clusterFrame: true,
|
||||
isEnabled: di.inject(shouldShowResourceInjectionToken, {
|
||||
apiName: "replicationcontrollers",
|
||||
group: "", // core
|
||||
}),
|
||||
}),
|
||||
|
||||
injectionToken: frontEndRouteInjectionToken,
|
||||
});
|
||||
|
||||
export default replicationControllersRouteInjectable;
|
||||
Reference in new issue
Block a user