Skip to content

Commit

Permalink
Merge pull request #41 from dougbtv/fix-sigterm-trap
Browse files Browse the repository at this point in the history
Fixes pod not responding to sigterm
  • Loading branch information
openshift-merge-robot committed Dec 14, 2021
2 parents 3c28a57 + 7820b04 commit c662bc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/controller.go
Expand Up @@ -112,8 +112,7 @@ func StartWatching() {
go c.Run(stopCh)

sigterm := make(chan os.Signal, 1)
signal.Notify(sigterm, syscall.SIGTERM)
signal.Notify(sigterm, syscall.SIGINT)
signal.Notify(sigterm, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL)
<-sigterm
}

Expand Down

0 comments on commit c662bc2

Please sign in to comment.