kubelet should take a client interface

This commit is contained in:
Deyuan Deng
2015-02-27 13:44:44 -05:00
parent 2d0743b143
commit 50de1a80c2
3 changed files with 26 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ type ListWatch struct {
WatchFunc WatchFunc
}
// ListWatchFromClient creates a new ListWatch from the specified client, resource, namespace and field selector
// NewListWatchFromClient creates a new ListWatch from the specified client, resource, namespace and field selector.
func NewListWatchFromClient(client *client.Client, resource string, namespace string, fieldSelector labels.Selector) *ListWatch {
listFunc := func() (runtime.Object, error) {
return client.Get().Namespace(namespace).Resource(resource).SelectorParam("fields", fieldSelector).Do().Get()