From 32fda203782f4e06a70044eddd3f830191484289 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Fri, 17 May 2019 18:42:22 -0400 Subject: [PATCH] Remove stop controller endpoint --- cmd/nginx/main.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/nginx/main.go b/cmd/nginx/main.go index a67fc7774..9b6501731 100644 --- a/cmd/nginx/main.go +++ b/cmd/nginx/main.go @@ -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) {