Add Restart Button to StatefulSet Menu (#6868)

* add restart button to statefulsets

Signed-off-by: Dan Bryant <daniel.bryant@linux.com>

* use ShowCheckedErrorNotification

Signed-off-by: Dan Bryant <daniel.bryant@linux.com>

Signed-off-by: Dan Bryant <daniel.bryant@linux.com>
This commit is contained in:
Dan authored and GitHub committed 2023-01-04 08:14:56 -05:00
1 parent 9522420f5b
commit b4d3a16470
3 files changed
+119

No files matched your search

@@ -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 { StatefulSetMenu } from "../../+workloads-statefulsets/statefulset-menu";
const statefulsetMenuInjectable = getInjectable({
id: "statefulset-menu-kube-object-menu",
instantiate: () => ({
kind: "StatefulSet",
apiVersions: ["apps/v1"],
Component: StatefulSetMenu as KubeObjectMenuItemComponent,
enabled: computed(() => true),
orderNumber: 30,
}),
injectionToken: kubeObjectMenuItemInjectionToken,
});
export default statefulsetMenuInjectable;