Skip to content

Commit ae4cabb

Browse files
committed
change exit code due to k8s reschedule infinitely
1 parent a75b720 commit ae4cabb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func main() {
5959

6060
if (len(resp.Contents) == 0) {
6161
fmt.Println("[ERROR] No files in bucket. ")
62-
os.Exit(1)
62+
os.Exit(0)
6363
}
6464

6565
mostRecentObj := *resp.Contents[0]
@@ -98,7 +98,7 @@ func main() {
9898
}
9999

100100
if (error) {
101-
os.Exit(1)
101+
os.Exit(0)
102102
}
103103

104104
fmt.Println("[SUCCESS] The file is OK." )

0 commit comments

Comments
 (0)