mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
add restart button to daemonset menu (#6826)
Signed-off-by: Dan Bryant <daniel.bryant@linux.com> Signed-off-by: Dan Bryant <daniel.bryant@linux.com>
This commit is contained in:
3 files changed
+115
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* 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 type { KubeObjectMenuItemComponent } from "../kube-object-menu-item-injection-token";
|
||||
import { kubeObjectMenuItemInjectionToken } from "../kube-object-menu-item-injection-token";
|
||||
import { computed } from "mobx";
|
||||
import { DaemonSetMenu } from "../../+workloads-daemonsets/daemonset-menu";
|
||||
|
||||
const daemonsetMenuInjectable = getInjectable({
|
||||
id: "daemonset-menu-kube-object-menu",
|
||||
|
||||
instantiate: () => ({
|
||||
kind: "DaemonSet",
|
||||
apiVersions: ["apps/v1"],
|
||||
Component: DaemonSetMenu as KubeObjectMenuItemComponent,
|
||||
enabled: computed(() => true),
|
||||
orderNumber: 30,
|
||||
}),
|
||||
|
||||
injectionToken: kubeObjectMenuItemInjectionToken,
|
||||
});
|
||||
|
||||
export default daemonsetMenuInjectable;
|
||||
Reference in new issue
Block a user