mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 10:48:15 +00:00
add QoS pod status field
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user