mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
extract PodReasonUnschedulable out of the PodConditionType const group
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
This commit is contained in:
parent
314264aeaf
commit
3eefcfadc0
@ -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