mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 19:08:35 +08:00
【修改】k8s 配置
This commit is contained in:
19
apps/devops/services/k8s/common/common.go
Normal file
19
apps/devops/services/k8s/common/common.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package common
|
||||
|
||||
import v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
// Condition represents a single condition of a pod or node.
|
||||
type Condition struct {
|
||||
// Type of a condition.
|
||||
Type string `json:"type"`
|
||||
// Status of a condition.
|
||||
Status v1.ConditionStatus `json:"status"`
|
||||
// Last probe time of a condition.
|
||||
LastProbeTime v1.Time `json:"lastProbeTime"`
|
||||
// Last transition time of a condition.
|
||||
LastTransitionTime v1.Time `json:"lastTransitionTime"`
|
||||
// Reason of a condition.
|
||||
Reason string `json:"reason"`
|
||||
// Message of a condition.
|
||||
Message string `json:"message"`
|
||||
}
|
||||
Reference in New Issue
Block a user