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

Commit

Permalink
fix: always print summary
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Feb 13, 2024
1 parent 487aab1 commit 7bb29c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ func main() {
sum, err := validate(ctx, kubeClient, logger, crds, namespaces.Slice(), objects)
must(err)

if config.Table {
if config.Table && tbl.Length() > 0 {
tbl.Render()
} else {
fmt.Fprintln(output, sum.String())
}

fmt.Fprintln(output, sum.String())

if !config.AllowFailure && sum.errors > 0 {
os.Exit(1)
}
Expand Down

0 comments on commit 7bb29c4

Please sign in to comment.