add QoS pod status field

This commit is contained in:
Seth Jennings
2016-12-12 13:07:06 -06:00
parent b5cf713bc7
commit 12b254db93
13 changed files with 13932 additions and 13766 deletions

View File

@@ -1894,6 +1894,18 @@ type PodSecurityContext struct {
FSGroup *int64
}
// PodQOSClass defines the supported qos classes of Pods.
type PodQOSClass string
const (
// PodQOSGuaranteed is the Guaranteed qos class.
PodQOSGuaranteed PodQOSClass = "Guaranteed"
// PodQOSBurstable is the Burstable qos class.
PodQOSBurstable PodQOSClass = "Burstable"
// PodQOSBestEffort is the BestEffort qos class.
PodQOSBestEffort PodQOSClass = "BestEffort"
)
// PodStatus represents information about the status of a pod. Status may trail the actual
// state of a system.
type PodStatus struct {
@@ -1917,6 +1929,8 @@ type PodStatus struct {
// This is before the Kubelet pulled the container image(s) for the pod.
// +optional
StartTime *metav1.Time
// +optional
QOSClass PodQOSClass `json:"qosClass,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