Merge pull request #11603 from goenning/go/refresh-rate-k8s

[Kubernetes Plugin] ability to configure refresh interval on Kubernetes tab
This commit is contained in:
Patrik Oldsberg
2022-06-03 16:55:23 +02:00
committed by GitHub
7 changed files with 59 additions and 12 deletions
+5 -1
View File
@@ -33,10 +33,14 @@ const serviceEntityPage = (
<EntityLayout>
{/* other tabs... */}
<EntityLayout.Route path="/kubernetes" title="Kubernetes">
<EntityKubernetesContent />
<EntityKubernetesContent refreshIntervalMs={30000} />
</EntityLayout.Route>
```
**Notes:**
- The optional `refreshIntervalMs` property on the `EntityKubernetesContent` defines the interval in which the content automatically refreshes, if not set this will default to 10 seconds.
That's it! But now, we need the Kubernetes Backend plugin for the frontend to
work.