1
0
Fork 0

Fix Kubernetes schema

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-04-26 22:26:25 +02:00
parent 4ff4e4e626
commit 87caf458df
No known key found for this signature in database
GPG key ID: D808B4C167352E59
4 changed files with 14 additions and 21 deletions

View file

@ -235,15 +235,6 @@ func (c *clientImpl) watch(url string, stopCh <-chan bool) (chan interface{}, ch
url = url + "?watch&resourceVersion=" + resourceVersion
// Make request to Kubernetes API
request := c.request(url)
// request.Transport.Dial = func(network, addr string) (net.Conn, error) {
// conn, err := net.Dial(network, addr)
// if err != nil {
// return nil, err
// }
// // No timeout for long-polling request
// conn.SetDeadline(time.Now())
// return conn, nil
// }
req, err := request.MakeRequest()
if err != nil {
return watchCh, errCh, fmt.Errorf("failed to make watch request: GET %q : %v", url, err)