@@ -291,7 +291,7 @@ func newMetricsHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration) h
|
|||||||
return pathRecorderMux
|
return pathRecorderMux
|
||||||
}
|
}
|
||||||
|
|
||||||
// newHealthzServer creates a healthz server from the config, and will also
|
// newHealthzHandler creates a healthz server from the config, and will also
|
||||||
// embed the metrics handler if the healthz and metrics address configurations
|
// embed the metrics handler if the healthz and metrics address configurations
|
||||||
// are the same.
|
// are the same.
|
||||||
func newHealthzHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration, separateMetrics bool) http.Handler {
|
func newHealthzHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration, separateMetrics bool) http.Handler {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ type PathRecorderMux struct {
|
|||||||
pathStacks map[string]string
|
pathStacks map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
// pathHandler is an http.Handler that will satify requests first by exact match, then by prefix,
|
// pathHandler is an http.Handler that will satisfy requests first by exact match, then by prefix,
|
||||||
// then by notFoundHandler
|
// then by notFoundHandler
|
||||||
type pathHandler struct {
|
type pathHandler struct {
|
||||||
// muxName is used for logging so you can trace requests through
|
// muxName is used for logging so you can trace requests through
|
||||||
|
|||||||
Reference in New Issue
Block a user