Fix missing value for k8s watch request parameter (#874)

Fixes: 732
This commit is contained in:
Alexander Block 2016-11-23 23:21:09 +01:00 committed by Emile Vauge
parent 2bf9acd95e
commit b4ea68b88a

View file

@ -248,7 +248,7 @@ func (c *clientImpl) watch(url string, labelSelector string, stopCh <-chan bool)
return watchCh, errCh, fmt.Errorf("failed to decode version %v", err)
}
resourceVersion := generic.ResourceVersion
queryParams := map[string]string{"watch": "", "resourceVersion": resourceVersion}
queryParams := map[string]string{"watch": "true", "resourceVersion": resourceVersion}
queryData, err := makeQueryString(queryParams, labelSelector)
if err != nil {
return watchCh, errCh, fmt.Errorf("Unable to construct query args")