Skip to content

Commit f9d5a6c

Browse files
willmurnanek8s-infra-cherrypick-robot
authored andcommitted
Exit with error status on error
1 parent 481ce48 commit f9d5a6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sidecar/cmd/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ func main() {
4242

4343
if err := cmd.ExecuteContext(ctx); err != nil {
4444
klog.ErrorS(err, "Exiting on error")
45+
os.Exit(1)
4546
}
4647
}

0 commit comments

Comments
 (0)