Abstract the error handling for the storage layer to eliminate the

direct etcd dependency.
This commit is contained in:
Timothy St. Clair
2015-12-03 10:09:45 -06:00
parent f6f7725f90
commit a428246960
7 changed files with 70 additions and 23 deletions

View File

@@ -836,6 +836,7 @@ func (m *Master) getServersToValidate(c *Config) map[string]apiserver.Server {
addr = etcdUrl.Host
port = 4001
}
// TODO: etcd health checking should be abstracted in the storage tier
serversToValidate[fmt.Sprintf("etcd-%d", ix)] = apiserver.Server{Addr: addr, Port: port, Path: "/health", Validate: etcdutil.EtcdHealthCheck}
}
return serversToValidate