diff --git a/pkg/utils/dump.go b/pkg/utils/dump.go index 56ab2328e..68ee22df6 100644 --- a/pkg/utils/dump.go +++ b/pkg/utils/dump.go @@ -26,7 +26,9 @@ import ( func KlogDump(v klog.Level, heading, prefix string, obj interface{}) { if klog.V(v).Enabled() { - klog.InfoDepth(1, heading) + if heading != "" { + klog.InfoDepth(1, heading) + } d := strings.Split(Dump(obj), "\n") // Print all but the last empty line