mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 20:11:27 +08:00
【修改】k8s 配置
This commit is contained in:
22
apps/devops/services/k8s/common/resourcestatus.go
Normal file
22
apps/devops/services/k8s/common/resourcestatus.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package common
|
||||
|
||||
// ResourceStatus provides basic information about resources status on the list.
|
||||
type ResourceStatus struct {
|
||||
// Number of resources that are currently in running state.
|
||||
Running int `json:"running"`
|
||||
|
||||
// Number of resources that are currently in pending state.
|
||||
Pending int `json:"pending"`
|
||||
|
||||
// Number of resources that are in failed state.
|
||||
Failed int `json:"failed"`
|
||||
|
||||
// Number of resources that are in succeeded state.
|
||||
Succeeded int `json:"succeeded"`
|
||||
|
||||
// Number of resources that are in unknown state.
|
||||
Unknown int `json:"unknown"`
|
||||
|
||||
// Number of resources that are in terminating state.
|
||||
Terminating int `json:"terminating"`
|
||||
}
|
||||
Reference in New Issue
Block a user