Skip to content

Commit 9e82d56

Browse files
authored
Merge pull request #138 from k8s-infra-cherrypick-robot/cherry-pick-131-to-release-0.2
[release-0.2] Exit with error status on error
2 parents 481ce48 + f9d5a6c commit 9e82d56

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)