Code cleanup - use const from the package.
This commit is contained in:
parent
a6473b90c5
commit
a6b81a6ca2
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue