Service instance detail page improvements #333
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
servala/servala-portal!333
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "257-service-detail-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#257
Not tested yet due to the k8s cluster being down
Service instance detail page improvementsto WIP: Service instance detail page improvements275e5e3cc11ac799e29cOpen questions:
TODO:
1ac799e29c4ae27e4109In the title as well:
Instance Display Name (Instance ID)The instance ID should be formatted as a mono font.
In addition to what we do now, we should also communicate the service status to the end user. Currently, the best way to do that is to query the Pod status of the service.
On a Claim on the Kubernetes API (e.g. VSHNForgejo), we can get the namespace where the actual service is deployed into by querying the field
.status.instanceNamespace. We can then get some status information from the Pods running in this Namespace. It might be that there are no Pods, one Pod, multiple Pods, this has to be coped with.I talked to Claude to ask about Pod status fields which could help us to communicate the Service Status: https://claude.ai/share/0d2ad9d5-6f22-4f4e-8df8-14775b0ecd40
From that, I propose: Use the "1. Service Status - combine phase and ready condition" and "4. Health status" from the proposed
get_user_friendly_status()function and display this information in the service detail page. The problem is that in a service namespace, multiple Pods can be available. When that is the case, let's display the status of all Pods, because we currently don't know which is the most important one.Label selector for Pods in instance namespace:
"app,!job-name,!batch.kubernetes.io/controller-uid"I'd love to have this status updated dynamically using server sent events and HTMX. There is some example code here: https://github.com/vshn/conferenceli/blob/main/podstatus/app.py#L113 This uses the Kubernetes Watch functionality to get notified about changes.
Furthermore, let's display the Kubernetes events from the instance namespace as well, because this can be helpful information when something doesn't work. Let's put this information into the "Technical Details" section.
WIP: Service instance detail page improvementsto Service instance detail page improvements