mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Fixes golint errors in pkg/healthz
This commit is contained in:
parent
f368e4be68
commit
1395b0fbf0
@ -30,6 +30,7 @@ func handleHealthz(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.Write([]byte("ok"))
|
w.Write([]byte("ok"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// InstallHandler registers a handler for health checking on the path "/healthz" to mux.
|
||||||
func InstallHandler(mux *http.ServeMux) {
|
func InstallHandler(mux *http.ServeMux) {
|
||||||
mux.HandleFunc("/healthz", handleHealthz)
|
mux.HandleFunc("/healthz", handleHealthz)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user