k8s runtime - get status from pods (#1283)

This commit is contained in:
ben-toogood
2020-03-02 15:49:10 +00:00
committed by GitHub
parent b555269b1b
commit 1f2e067f71
2 changed files with 33 additions and 32 deletions

View File

@@ -103,8 +103,16 @@ type Pod struct {
// PodStatus
type PodStatus struct {
PodIP string `json:"podIP"`
Phase string `json:"phase"`
PodIP string `json:"podIP"`
Phase string `json:"phase"`
Conditions []PodCondition `json:"conditions,omitempty"`
}
// PodCondition describes the state of pod
type PodCondition struct {
Type string `json:"type"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
// Resource is API resource