Remove /build endpoint (#4875)
This commit is contained in:
parent
f0f9618a89
commit
8db541e24b
1 changed files with 0 additions and 10 deletions
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -139,7 +138,6 @@ func main() {
|
||||||
|
|
||||||
registerHealthz(nginx.HealthPath, ngx, mux)
|
registerHealthz(nginx.HealthPath, ngx, mux)
|
||||||
registerMetrics(reg, mux)
|
registerMetrics(reg, mux)
|
||||||
registerHandlers(mux)
|
|
||||||
|
|
||||||
go startHTTPServer(conf.ListenPorts.Health, mux)
|
go startHTTPServer(conf.ListenPorts.Health, mux)
|
||||||
|
|
||||||
|
@ -253,14 +251,6 @@ func handleFatalInitError(err error) {
|
||||||
err)
|
err)
|
||||||
}
|
}
|
||||||
|
|
||||||
func registerHandlers(mux *http.ServeMux) {
|
|
||||||
mux.HandleFunc("/build", func(w http.ResponseWriter, r *http.Request) {
|
|
||||||
w.WriteHeader(http.StatusOK)
|
|
||||||
b, _ := json.Marshal(version.String())
|
|
||||||
w.Write(b)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
func registerHealthz(healthPath string, ic *controller.NGINXController, mux *http.ServeMux) {
|
func registerHealthz(healthPath string, ic *controller.NGINXController, mux *http.ServeMux) {
|
||||||
// expose health check endpoint (/healthz)
|
// expose health check endpoint (/healthz)
|
||||||
healthz.InstallPathHandler(mux,
|
healthz.InstallPathHandler(mux,
|
||||||
|
|
Loading…
Reference in a new issue