Skip to content

Commit

Permalink
Merge pull request #2476 from tghartland/fix-scale-down-errorf
Browse files Browse the repository at this point in the history
CA: Make error message in scale down node draining consistent
  • Loading branch information
k8s-ci-robot authored Nov 4, 2019
2 parents cc7a214 + 229fc95 commit 19dcfbd
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 @@ -1144,7 +1144,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 19dcfbd

Please sign in to comment.