Merge pull request #4100 from aledbf/remove-stop

Remove stop controller endpoint
This commit is contained in:
Kubernetes Prow Robot 2019-05-22 06:10:13 -07:00 committed by GitHub
commit 0bdca63d6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {