Merge pull request #4100 from aledbf/remove-stop
Remove stop controller endpoint
This commit is contained in:
commit
0bdca63d6d
1 changed files with 0 additions and 7 deletions
|
@ -254,13 +254,6 @@ func registerHandlers(mux *http.ServeMux) {
|
|||
b, _ := json.Marshal(version.String())
|
||||
w.Write(b)
|
||||
})
|
||||
|
||||
mux.HandleFunc("/stop", func(w http.ResponseWriter, r *http.Request) {
|
||||
err := syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
|
||||
if err != nil {
|
||||
klog.Errorf("Unexpected error: %v", err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func registerHealthz(ic *controller.NGINXController, mux *http.ServeMux) {
|
||||
|
|
Loading…
Reference in a new issue