Bump sigs.k8s.io/controller-runtime to v0.14.4 (#5507)

* Bump sigs.k8s.io/controller-runtime to v0.14.4

* Update gofmt
This commit is contained in:
hongming
2023-02-08 14:06:15 +08:00
committed by GitHub
parent 129e6fbec3
commit 1c49fcd57e
1404 changed files with 141422 additions and 47769 deletions

View File

@@ -212,18 +212,19 @@ func printTable(table *metav1.Table, output io.Writer, options PrintOptions) err
case string:
print := val
truncated := false
// truncate at newlines
newline := strings.Index(print, "\n")
if newline >= 0 {
// Truncate at the first newline, carriage return or formfeed
// (treated as a newline by tabwriter).
breakchar := strings.IndexAny(print, "\f\n\r")
if breakchar >= 0 {
truncated = true
print = print[:newline]
print = print[:breakchar]
}
fmt.Fprint(output, print)
WriteEscaped(output, print)
if truncated {
fmt.Fprint(output, "...")
}
default:
fmt.Fprint(output, val)
WriteEscaped(output, fmt.Sprint(val))
}
}
}