From 229fc959b4501b14717afb745b2683df3b369015 Mon Sep 17 00:00:00 2001 From: Thomas Hartland Date: Wed, 23 Oct 2019 15:28:09 +0200 Subject: [PATCH] Make error message in scale down consistent --- cluster-autoscaler/core/scale_down.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-autoscaler/core/scale_down.go b/cluster-autoscaler/core/scale_down.go index 88ec35e74d4..a35976dcc36 100644 --- a/cluster-autoscaler/core/scale_down.go +++ b/cluster-autoscaler/core/scale_down.go @@ -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 }