Commit 6b08ef57 authored by Minhan Xia's avatar Minhan Xia

add ContainersReady condition

parent 2f011d01
...@@ -2094,6 +2094,8 @@ const ( ...@@ -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{ ...@@ -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 ( ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment