mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
add ContainersReady condition
This commit is contained in:
parent
2f011d01fa
commit
6b08ef575f
@ -2094,6 +2094,8 @@ 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"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PodCondition struct {
|
type PodCondition struct {
|
||||||
|
@ -26,6 +26,7 @@ var PodConditionsByKubelet = []v1.PodConditionType{
|
|||||||
v1.PodReady,
|
v1.PodReady,
|
||||||
v1.PodInitialized,
|
v1.PodInitialized,
|
||||||
v1.PodReasonUnschedulable,
|
v1.PodReasonUnschedulable,
|
||||||
|
v1.ContainersReady,
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodConditionByKubelet returns if the pod condition type is owned by kubelet
|
// PodConditionByKubelet returns if the pod condition type is owned by kubelet
|
||||||
|
@ -2312,6 +2312,8 @@ 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