Skip to content

Commit

Permalink
Make error message in scale down consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
tghartland committed Oct 23, 2019
1 parent c547c75 commit 229fc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/core/scale_down.go
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ func drainNode(node *apiv1.Node, pods []*apiv1.Pod, client kube_client.Interface
for _, pod := range pods {
podreturned, err := client.CoreV1().Pods(pod.Namespace).Get(pod.Name, metav1.GetOptions{})
if err == nil && (podreturned == nil || podreturned.Spec.NodeName == node.Name) {
klog.Errorf("Not deleted yet %v", podreturned)
klog.Errorf("Not deleted yet %s/%s", pod.Namespace, pod.Name)
allGone = false
break
}
Expand Down

0 comments on commit 229fc95

Please sign in to comment.