mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
Fix labels for k8s (#1370)
This commit is contained in:
@@ -136,8 +136,12 @@ func (k *kubernetes) getService(labels map[string]string) ([]*service, error) {
|
|||||||
for _, item := range podList.Items {
|
for _, item := range podList.Items {
|
||||||
var status string
|
var status string
|
||||||
|
|
||||||
// inspect the
|
// check the name
|
||||||
if item.Metadata.Name != name {
|
if item.Metadata.Labels["name"] != name {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
// check the version
|
||||||
|
if item.Metadata.Labels["version"] != version {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user