Skip to content

Commit 0f88ecf

Browse files
committed
UI status Improves
1 parent aee780f commit 0f88ecf

File tree

2 files changed

+38
-27
lines changed

2 files changed

+38
-27
lines changed

cmd/status.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ func runStatus(cmd *cobra.Command, args []string) {
8484
fmt.Printf("TCP Connection: %s\n", *status.TCPConnection)
8585
}
8686

87+
// Show persistent storage information if configured
88+
if status.PersistentVolumeSize != "" && status.PersistentVolumeMountPath != "" {
89+
fmt.Printf("💾 Persistent Storage:\n")
90+
fmt.Printf(" Size: %s\n", status.PersistentVolumeSize)
91+
fmt.Printf(" Mount Path: %s\n", status.PersistentVolumeMountPath)
92+
}
93+
8794
if len(status.Pods) > 0 {
8895
fmt.Printf("\n� Pods:\n")
8996
for i, pod := range status.Pods {

internal/client/types.go

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,26 @@ type DeploymentCreate struct {
3434

3535
// DeploymentResponse represents a deployment response
3636
type DeploymentResponse struct {
37-
ID string `json:"id"`
38-
ClientID string `json:"client_id"`
39-
AppName string `json:"app_name"`
40-
Image string `json:"image"`
41-
Replicas int `json:"replicas"`
42-
CPULimit string `json:"cpu_limit"`
43-
MemoryLimit string `json:"memory_limit"`
44-
CPURequest string `json:"cpu_request"`
45-
MemoryRequest string `json:"memory_request"`
46-
HTTPPort *int `json:"http_port"`
47-
TCPPort *int `json:"tcp_port"`
48-
TCPNodePort *int `json:"tcp_node_port"`
49-
EnvironmentVars map[string]string `json:"environment_vars"`
50-
Status string `json:"status"`
51-
CreatedAt time.Time `json:"created_at"`
52-
UpdatedAt *time.Time `json:"updated_at"`
53-
URL *string `json:"url"`
54-
TCPConnection *string `json:"tcp_connection"`
37+
ID string `json:"id"`
38+
ClientID string `json:"client_id"`
39+
AppName string `json:"app_name"`
40+
Image string `json:"image"`
41+
Replicas int `json:"replicas"`
42+
CPULimit string `json:"cpu_limit"`
43+
MemoryLimit string `json:"memory_limit"`
44+
CPURequest string `json:"cpu_request"`
45+
MemoryRequest string `json:"memory_request"`
46+
HTTPPort *int `json:"http_port"`
47+
TCPPort *int `json:"tcp_port"`
48+
TCPNodePort *int `json:"tcp_node_port"`
49+
EnvironmentVars map[string]string `json:"environment_vars"`
50+
PersistentVolumeSize string `json:"persistent_volume_size,omitempty"`
51+
PersistentVolumeMountPath string `json:"persistent_volume_mount_path,omitempty"`
52+
Status string `json:"status"`
53+
CreatedAt time.Time `json:"created_at"`
54+
UpdatedAt *time.Time `json:"updated_at"`
55+
URL *string `json:"url"`
56+
TCPConnection *string `json:"tcp_connection"`
5557
}
5658

5759
// DeploymentList represents a list of deployments
@@ -62,15 +64,17 @@ type DeploymentList struct {
6264

6365
// DeploymentStatus represents deployment status details
6466
type DeploymentStatus struct {
65-
AppName string `json:"app_name"`
66-
Status string `json:"status"`
67-
ReplicasReady int `json:"replicas_ready"`
68-
ReplicasDesired int `json:"replicas_desired"`
69-
Pods []map[string]string `json:"pods"`
70-
URL *string `json:"url"`
71-
TCPConnection *string `json:"tcp_connection"`
72-
URLNote *string `json:"url_note,omitempty"`
73-
TLSCertificate *TLSCertificateInfo `json:"tls_certificate,omitempty"`
67+
AppName string `json:"app_name"`
68+
Status string `json:"status"`
69+
ReplicasReady int `json:"replicas_ready"`
70+
ReplicasDesired int `json:"replicas_desired"`
71+
Pods []map[string]string `json:"pods"`
72+
URL *string `json:"url"`
73+
TCPConnection *string `json:"tcp_connection"`
74+
URLNote *string `json:"url_note,omitempty"`
75+
TLSCertificate *TLSCertificateInfo `json:"tls_certificate,omitempty"`
76+
PersistentVolumeSize string `json:"persistent_volume_size,omitempty"`
77+
PersistentVolumeMountPath string `json:"persistent_volume_mount_path,omitempty"`
7478
}
7579

7680
// TLSCertificateInfo represents TLS certificate status

0 commit comments

Comments
 (0)