Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit 7bb29c4

Browse files
committed
fix: always print summary
1 parent 487aab1 commit 7bb29c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ func main() {
249249
sum, err := validate(ctx, kubeClient, logger, crds, namespaces.Slice(), objects)
250250
must(err)
251251

252-
if config.Table {
252+
if config.Table && tbl.Length() > 0 {
253253
tbl.Render()
254-
} else {
255-
fmt.Fprintln(output, sum.String())
256254
}
257255

256+
fmt.Fprintln(output, sum.String())
257+
258258
if !config.AllowFailure && sum.errors > 0 {
259259
os.Exit(1)
260260
}

0 commit comments

Comments
 (0)