Fix breaking build

This commit is contained in:
Asim 2015-10-20 18:03:39 +01:00
parent 975c6d4148
commit e2b849da29
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/myodc/go-micro/registry"
k8s "k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
)
@ -38,7 +39,7 @@ func (c *kregistry) GetService(name string) (*registry.Service, error) {
selector := labels.SelectorFromSet(labels.Set{"name": name})
services, err := c.client.Services(c.namespace).List(selector)
services, err := c.client.Services(c.namespace).List(selector, fields.Everything())
if err != nil {
return nil, err
}
@ -75,7 +76,7 @@ func (c *kregistry) ListServices() ([]*registry.Service, error) {
return services, nil
}
rsp, err := c.client.Services(c.namespace).List(labels.Everything())
rsp, err := c.client.Services(c.namespace).List(labels.Everything(), fields.Everything())
if err != nil {
return nil, err
}

View File

@ -66,7 +66,7 @@ func (k *watcher) Stop() {
func newWatcher(kr *kregistry) (registry.Watcher, error) {
svi := kr.client.Services(api.NamespaceAll)
services, err := svi.List(labels.Everything())
services, err := svi.List(labels.Everything(), fields.Everything())
if err != nil {
return nil, err
}