-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1_pod_status.go
51 lines (37 loc) · 3.01 KB
/
v1_pod_status.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
import (
"time"
)
// PodStatus represents information about the status of a pod. Status may trail the actual state of a system.
type V1PodStatus struct {
// Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
Conditions []V1PodCondition `json:"conditions,omitempty"`
// The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
ContainerStatuses []V1ContainerStatus `json:"containerStatuses,omitempty"`
// IP address of the host to which the pod is assigned. Empty if not yet scheduled.
HostIP string `json:"hostIP,omitempty"`
// The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
InitContainerStatuses []V1ContainerStatus `json:"initContainerStatuses,omitempty"`
// A human readable message indicating details about why the pod is in this condition.
Message string `json:"message,omitempty"`
// nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.
NominatedNodeName string `json:"nominatedNodeName,omitempty"`
// Current condition of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
Phase string `json:"phase,omitempty"`
// IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.
PodIP string `json:"podIP,omitempty"`
// The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
QosClass string `json:"qosClass,omitempty"`
// A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'
Reason string `json:"reason,omitempty"`
// RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.
StartTime time.Time `json:"startTime,omitempty"`
}