Configure the master to connect to the kubelet using HTTPS.

This commit is contained in:
Robert Bailey
2015-03-31 14:25:45 -07:00
parent d0f48b68d8
commit 58bc792e68
7 changed files with 84 additions and 67 deletions

View File

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