mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add kubeWorkloadsOverviewItems example to docs (#3050)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
d14a3e4a6d
commit
b3f8404250
@ -249,6 +249,27 @@ export default class ExampleExtension extends Renderer.LensExtension {
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Kubernetes Workloads Overview Items
|
||||||
|
|
||||||
|
This extension can register custom workloads overview items.
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import React from "react"
|
||||||
|
import { Renderer } from "@k8slens/extensions";
|
||||||
|
import { CustomWorkloadsOverviewItem } from "./src/custom-workloads-overview-item"
|
||||||
|
|
||||||
|
export default class ExampleExtension extends Renderer.LensExtension {
|
||||||
|
kubeWorkloadsOverviewItems = [
|
||||||
|
{
|
||||||
|
components : {
|
||||||
|
Details: () => <CustomWorkloadsOverviewItem />
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
### Kubernetes Object Menu Items
|
### Kubernetes Object Menu Items
|
||||||
|
|
||||||
This extension can register custom menu items (actions) for specified Kubernetes kinds/apiVersions.
|
This extension can register custom menu items (actions) for specified Kubernetes kinds/apiVersions.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user