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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-kubernetes': patch
|
||||
---
|
||||
|
||||
Make k8s entity content appear on components & resources only by default in new FE system
|
||||
@@ -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 />),
|
||||
|
||||
Reference in New Issue
Block a user