Revert "Configure the kubelet to use HTTPS"

This commit is contained in:
Robert Bailey
2015-04-01 13:59:31 -07:00
parent d010b2a34e
commit 32a1c052dc
9 changed files with 71 additions and 126 deletions

View File

@@ -139,7 +139,14 @@ func (g *APIGroupVersion) InstallREST(container *restful.Container) error {
// TODO: Convert to go-restful
func InstallValidator(mux Mux, servers func() map[string]Server) {
mux.Handle("/validate", NewValidator(servers))
validator, err := NewValidator(servers)
if err != nil {
glog.Errorf("failed to set up validator: %v", err)
return
}
if validator != nil {
mux.Handle("/validate", validator)
}
}
// TODO: document all handlers