Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Add is_ready to app status
Browse files Browse the repository at this point in the history
  • Loading branch information
waTeim committed Oct 9, 2023
1 parent b816519 commit 82c7d89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tycho/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "1.15.0"
VERSION = "1.16.0"
7 changes: 6 additions & 1 deletion tycho/kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ def status (self, name=None, username=None, namespace="default"):
ip_address = "127.0.0.1"
port = 80

desired_replicas = item.status.replicas
ready_replicas = item.status.ready_replicas
is_ready = ready_replicas == desired_replicas

result.append(
{
"name": item.metadata.name,
Expand All @@ -436,7 +440,8 @@ def status (self, name=None, username=None, namespace="default"):
"creation_time": time,
"username": item_username,
"utilization": pod_resources,
"workspace_name": workspace_name
"workspace_name": workspace_name,
"is_ready": is_ready
}
)

Expand Down

0 comments on commit 82c7d89

Please sign in to comment.