mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #78049 from tariq1890/corev1_pod
extract PodReasonUnschedulable out of the PodConditionType const group
This commit is contained in:
commit
0b67b95c8f
@ -2410,18 +2410,22 @@ type PodConditionType string
|
|||||||
|
|
||||||
// These are valid conditions of pod.
|
// These are valid conditions of pod.
|
||||||
const (
|
const (
|
||||||
// PodScheduled represents status of the scheduling process for this pod.
|
// ContainersReady indicates whether all containers in the pod are ready.
|
||||||
PodScheduled PodConditionType = "PodScheduled"
|
ContainersReady PodConditionType = "ContainersReady"
|
||||||
|
// PodInitialized means that all init containers in the pod have started successfully.
|
||||||
|
PodInitialized PodConditionType = "Initialized"
|
||||||
// PodReady means the pod is able to service requests and should be added to the
|
// PodReady means the pod is able to service requests and should be added to the
|
||||||
// load balancing pools of all matching services.
|
// load balancing pools of all matching services.
|
||||||
PodReady PodConditionType = "Ready"
|
PodReady PodConditionType = "Ready"
|
||||||
// PodInitialized means that all init containers in the pod have started successfully.
|
// PodScheduled represents status of the scheduling process for this pod.
|
||||||
PodInitialized PodConditionType = "Initialized"
|
PodScheduled PodConditionType = "PodScheduled"
|
||||||
|
)
|
||||||
|
|
||||||
|
// These are reasons for a pod's transition to a condition.
|
||||||
|
const (
|
||||||
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
|
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
|
||||||
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
|
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
|
||||||
PodReasonUnschedulable = "Unschedulable"
|
PodReasonUnschedulable = "Unschedulable"
|
||||||
// ContainersReady indicates whether all containers in the pod are ready.
|
|
||||||
ContainersReady PodConditionType = "ContainersReady"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// PodCondition contains details for the current condition of this pod.
|
// PodCondition contains details for the current condition of this pod.
|
||||||
|
Loading…
Reference in New Issue
Block a user