updated cluster features docs (#3094)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann authored and GitHub committed 2021-06-18 09:07:27 -04:00
1 parent ee76d81d15
commit 196eb761b2
3 files changed
+98 -45

No files matched your search

@@ -189,36 +189,6 @@ export default class ExampleExtension extends Renderer.LensExtension {
```
### Cluster Features
This extension can register installable features for a cluster.
These features are visible in the "Cluster Settings" page.
```typescript
import React from "react"
import { Renderer } from "@k8slens/extensions"
import { MyCustomFeature } from "./src/my-custom-feature"
export default class ExampleExtension extends Renderer.LensExtension {
clusterFeatures = [
{
title: "My Custom Feature",
components: {
Description: () => {
return (
<span>
Just an example.
</span>
)
}
},
feature: new MyCustomFeature()
}
]
}
```
### Top Bar Items
This extension can register custom components to a top bar area.