Skip to content

Commit 5803819

Browse files
Merge pull request #20 from oscp/feature/CheckLoggingRestartsCount
Restart count of 4 seems to be normal in our current environment with…
2 parents b36bf8e + 429f61a commit 5803819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daemon/client/checks/openshift.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ func CheckLoggingRestartsCount() error {
330330
for _, l := range strings.Split(string(out), "\n") {
331331
if !strings.HasPrefix(l, "RESTARTS") && len(strings.TrimSpace(l)) > 0 {
332332
cnt, _ := strconv.Atoi(l)
333-
if cnt > 2 {
334-
msg = "A logging-container has restart count bigger than 2 - " + strconv.Itoa(cnt)
333+
if cnt > 7 {
334+
msg = "A logging-container has restart count bigger than 7 - " + strconv.Itoa(cnt)
335335
isOk = false
336336
}
337337
}

0 commit comments

Comments
 (0)