mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-02 06:47:34 +00:00
Update cadvisor godeps to v0.28.3
This commit is contained in:
4
vendor/github.com/google/cadvisor/http/handlers.go
generated
vendored
4
vendor/github.com/google/cadvisor/http/handlers.go
generated
vendored
@@ -60,7 +60,7 @@ func RegisterHandlers(mux httpmux.Mux, containerManager manager.Manager, httpAut
|
||||
|
||||
// Setup the authenticator object
|
||||
if httpAuthFile != "" {
|
||||
glog.Infof("Using auth file %s", httpAuthFile)
|
||||
glog.V(1).Infof("Using auth file %s", httpAuthFile)
|
||||
secrets := auth.HtpasswdFileProvider(httpAuthFile)
|
||||
authenticator := auth.NewBasicAuthenticator(httpAuthRealm, secrets)
|
||||
mux.HandleFunc(static.StaticResource, authenticator.Wrap(staticHandler))
|
||||
@@ -70,7 +70,7 @@ func RegisterHandlers(mux httpmux.Mux, containerManager manager.Manager, httpAut
|
||||
authenticated = true
|
||||
}
|
||||
if httpAuthFile == "" && httpDigestFile != "" {
|
||||
glog.Infof("Using digest file %s", httpDigestFile)
|
||||
glog.V(1).Infof("Using digest file %s", httpDigestFile)
|
||||
secrets := auth.HtdigestFileProvider(httpDigestFile)
|
||||
authenticator := auth.NewDigestAuthenticator(httpDigestRealm, secrets)
|
||||
mux.HandleFunc(static.StaticResource, authenticator.Wrap(staticHandler))
|
||||
|
||||
Reference in New Issue
Block a user