1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

Add fixes for label selector and skipping things that don't match

This commit is contained in:
Asim Aslam
2019-11-26 22:28:08 +00:00
parent 3f3fd38601
commit 811275be26
3 changed files with 20 additions and 6 deletions

View File

@ -126,9 +126,9 @@ func (c *client) Update(r *Resource) error {
switch r.Kind {
case "service":
req.Body(r.Value.(*Service).Spec)
req.Body(r.Value.(*Service))
case "deployment":
req.Body(r.Value.(*Deployment).Spec)
req.Body(r.Value.(*Deployment))
default:
return errors.New("unsupported resource")
}
@ -151,6 +151,5 @@ func (c *client) List(r *Resource) error {
labels := map[string]string{
"micro": "service",
}
return c.Get(r, labels)
}