diff --git a/pkg/apis/core/types.go b/pkg/apis/core/types.go index d2593cac0cc..4d0d9f9abcb 100644 --- a/pkg/apis/core/types.go +++ b/pkg/apis/core/types.go @@ -2094,6 +2094,8 @@ const ( // 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. PodReasonUnschedulable = "Unschedulable" + // ContainersReady indicates whether all containers in the pod are ready. + ContainersReady PodConditionType = "ContainersReady" ) type PodCondition struct { diff --git a/pkg/kubelet/types/pod_status.go b/pkg/kubelet/types/pod_status.go index a7756382b3c..8c46ba39eb6 100644 --- a/pkg/kubelet/types/pod_status.go +++ b/pkg/kubelet/types/pod_status.go @@ -26,6 +26,7 @@ var PodConditionsByKubelet = []v1.PodConditionType{ v1.PodReady, v1.PodInitialized, v1.PodReasonUnschedulable, + v1.ContainersReady, } // PodConditionByKubelet returns if the pod condition type is owned by kubelet diff --git a/staging/src/k8s.io/api/core/v1/types.go b/staging/src/k8s.io/api/core/v1/types.go index c8ad4371c79..e850dd5b12f 100644 --- a/staging/src/k8s.io/api/core/v1/types.go +++ b/staging/src/k8s.io/api/core/v1/types.go @@ -2312,6 +2312,8 @@ const ( // 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. 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.