Skip to content

Commit

Permalink
Merge pull request #93 from vshn/feat/nonroot-self-test
Browse files Browse the repository at this point in the history
Disable parent keepalived check and oom score adjustment in test mode
  • Loading branch information
simu authored Jul 8, 2024
2 parents 3c4e2b6 + e1b1127 commit cf27138
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ func main() {

setupLogger()

WaitForKeepalivedTermination(ctx, stop)
if err = configOutOfMemoryKiller(); err != nil {
log.Fatal(err)
if !testMode {
WaitForKeepalivedTermination(ctx, stop)
if err = configOutOfMemoryKiller(); err != nil {
log.Fatal(err)
}
}

configFile := flag.Arg(0)
Expand Down

0 comments on commit cf27138

Please sign in to comment.