Closed nxtcoder36 closed 2 weeks ago
This pull request implements deployment checks for the Kloudlite system. It adds functionality to check the status of various deployments, improves error handling, and enhances the overall robustness of the system. The changes primarily focus on the status command, K3s cluster setup, and logging improvements.
sequenceDiagram
participant User
participant Cmd as Command
participant K3s as K3s Server
participant KL as Kloudlite Gateway
participant Agent as Kloudlite Agent
participant Operator as Kloudlite Agent Operator
User->>Cmd: Run status command
Cmd->>K3s: GET /apis/apps/v1/namespaces/kl-gateway/deployments/default
K3s-->>Cmd: Deployment status
Cmd->>KL: Check if Available
KL-->>Cmd: Status (Ready/Not Ready)
Cmd->>K3s: GET /apis/apps/v1/namespaces/kloudlite/deployments/kl-agent
K3s-->>Cmd: Deployment status
Cmd->>Agent: Check if Available
Agent-->>Cmd: Status (Ready/Not Ready)
Cmd->>K3s: GET /apis/apps/v1/namespaces/kloudlite/deployments/kl-agent-operator
K3s-->>Cmd: Deployment status
Cmd->>Operator: Check if Available
Operator-->>Cmd: Status (Ready/Not Ready)
Cmd-->>User: Display status results
Change | Details | Files |
---|---|---|
Implemented deployment status checks |
|
cmd/status/status.go |
Improved K3s cluster setup and management |
|
pkg/k3s/impl.go |
Enhanced logging and debugging capabilities |
|
pkg/functions/print.go cmd/box/boxpkg/utils.go |
Renamed HostIp constant to K3sServerIp |
|
constants/main.go pkg/k3s/impl.go cmd/box/boxpkg/utils.go |
Summary by Sourcery
Enhance the status command to include checks for K3s deployment readiness and improve logging and error handling in the container script execution process. Update constants for clarity and improve user feedback with updated spinner messages.
Enhancements:
Chores: