gethomepage / homepage

A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.
https://gethomepage.dev
GNU General Public License v3.0
18.73k stars 1.1k forks source link

Fix: don't show "partial" for k8s status if there are completed job pods #3735

Closed charlesthomas closed 2 months ago

charlesthomas commented 2 months ago

i'm using a kubernetes service that includes a web UI and cronjobs. because the job finish and go to status Completed, the homepage link to the web UI shows partial instead of running

this patch updates the someReady & allReady pod filter to include pods that are both Running and Completed

Proposed change

Closes # (issue)

Type of change

Checklist:

shamoon commented 2 months ago

My bad for not checking this more carefully, but FYI in is not the correct way to do this, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in

shamoon commented 2 months ago

Also, apparently it doesn’t work either https://github.com/gethomepage/homepage/discussions/3759

I can only assume this wasn’t tested before submitting, and I know I didn’t because I don’t really have a real k8s setup so that’s on me, but I would recommend testing things out before submitting a PR in the future.

github-actions[bot] commented 1 month ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details.