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

fix type filtering for k8s runtime

This commit is contained in:
Asim Aslam 2019-11-29 13:05:18 +00:00
parent 6bf4828296
commit ce4acfa892

View File

@ -335,7 +335,7 @@ func (k *kubernetes) Read(opts ...runtime.ReadOption) ([]*runtime.Service, error
} }
if len(options.Type) > 0 { if len(options.Type) > 0 {
labels["type"] = options.Type labels["micro"] = options.Type
} }
return k.getService(labels) return k.getService(labels)