backstage / backstage

Backstage is an open framework for building developer portals
https://backstage.io/
Apache License 2.0
27.85k stars 5.86k forks source link

🚀 Feature: Log streaming support in Kubernetes Plugin #25598

Open OrkoHunter opened 2 months ago

OrkoHunter commented 2 months ago

🔖 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.

Screenshot 2024-07-12 at 10 08 34 AM Screenshot 2024-07-12 at 10 08 47 AM

🎤 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

github-actions[bot] commented 2 weeks ago

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.