add default entity filter to k8s tab

Signed-off-by: Alex McKay <amckay@spotify.com>
This commit is contained in:
Alex McKay
2024-08-23 12:26:03 -04:00
parent 93f4a773d4
commit 6c21e5d1d0
2 changed files with 13 additions and 2 deletions
+12 -2
View File
@@ -52,7 +52,7 @@ export const app = createApp({
});
```
2. Next, enable your desired extensions in `app-config.yaml`
2. Next, enable your desired extensions in `app-config.yaml`.
```yaml
app:
@@ -60,4 +60,14 @@ app:
- entity-content:kubernetes/kubernetes
```
Now, the extension appears on your entity page as one of the tabs, which is called `KUBERNETES`
Now, the extension appears on your entity page as one of the tabs, which is called `KUBERNETES`.
By default, the tab will only appear on entities that are Components or Resources. You can override
that behavior by providing a config block to the extension, like so:
```yaml
app:
extensions:
- entity-content:kubernetes/kubernetes:
config:
filter: kind:component,api,resource,system
```
@@ -23,6 +23,7 @@ export const entityKubernetesContent = EntityContentBlueprint.make({
params: {
defaultPath: '/kubernetes',
defaultTitle: 'Kubernetes',
filter: 'kind:component,resource',
loader: () =>
import('./KubernetesContentPage').then(m =>
compatWrapper(<m.KubernetesContentPage />),