Skip to content

Commit

Permalink
Merge pull request #20 from oscp/feature/CheckLoggingRestartsCount
Browse files Browse the repository at this point in the history
Restart count of 4 seems to be normal in our current environment with…
  • Loading branch information
LorenzBischof authored Jan 8, 2020
2 parents b36bf8e + 429f61a commit 5803819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/client/checks/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ func CheckLoggingRestartsCount() error {
for _, l := range strings.Split(string(out), "\n") {
if !strings.HasPrefix(l, "RESTARTS") && len(strings.TrimSpace(l)) > 0 {
cnt, _ := strconv.Atoi(l)
if cnt > 2 {
msg = "A logging-container has restart count bigger than 2 - " + strconv.Itoa(cnt)
if cnt > 7 {
msg = "A logging-container has restart count bigger than 7 - " + strconv.Itoa(cnt)
isOk = false
}
}
Expand Down

0 comments on commit 5803819

Please sign in to comment.