The Pod logs viewer in the Kubernetes plugin should stream logs and update the view live. Currently it only fetches the logs for one time on page load, it seems.
🎤 Context
Developers really like the K8S plugin as they start their deployment and watch their new pods spin up. Having the logs viewer stream logs live will help them keep Backstage open in one screen and observe the logs as they deploy or test something on an existing deployment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🔖 Feature description
The Pod logs viewer in the Kubernetes plugin should stream logs and update the view live. Currently it only fetches the logs for one time on page load, it seems.
🎤 Context
Developers really like the K8S plugin as they start their deployment and watch their new pods spin up. Having the logs viewer stream logs live will help them keep Backstage open in one screen and observe the logs as they deploy or test something on an existing deployment.
✌️ Possible Implementation
This can be done similarly to how Scaffolder streams logs from the backend to the UI. The current LogViewer component seems to be making a one time call to fetch logs over here. https://github.com/backstage/backstage/blob/master/plugins/kubernetes-react/src/components/Pods/PodLogs/PodLogs.tsx#L48
👀 Have you spent some time to check if this feature request has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
No, but I'm happy to collaborate on a PR with someone else