Remove stop controller endpoint

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-05-17 18:42:22 -04:00
parent fafa0a6e13
commit 32fda20378
No known key found for this signature in database
GPG key ID: 786136016A8BA02A

View file

@ -254,13 +254,6 @@ func registerHandlers(mux *http.ServeMux) {
b, _ := json.Marshal(version.String()) b, _ := json.Marshal(version.String())
w.Write(b) 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) { func registerHealthz(ic *controller.NGINXController, mux *http.ServeMux) {