Merge pull request #26180 from alex-mckay/addDefaultK8sEntityFilter

Add default component & resource entity filter to k8s plugin (new FE system only)
This commit is contained in:
Patrik Oldsberg
2024-08-23 19:21:06 +02:00
committed by GitHub
3 changed files with 18 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes': patch
---
Make k8s entity content appear on components & resources only by default in new FE system
+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 />),