Code cleanup - use const from the package.

This commit is contained in:
Krishnakumar R 2018-08-30 22:23:45 -07:00
parent a6473b90c5
commit a6b81a6ca2
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ func (unschedulablePodLister *UnschedulablePodLister) List() ([]*apiv1.Pod, erro
} }
for _, pod := range allPods { for _, pod := range allPods {
_, condition := podv1.GetPodCondition(&pod.Status, apiv1.PodScheduled) _, condition := podv1.GetPodCondition(&pod.Status, apiv1.PodScheduled)
if condition != nil && condition.Status == apiv1.ConditionFalse && condition.Reason == "Unschedulable" { if condition != nil && condition.Status == apiv1.ConditionFalse && condition.Reason == apiv1.PodReasonUnschedulable {
unschedulablePods = append(unschedulablePods, pod) unschedulablePods = append(unschedulablePods, pod)
} }
} }