Merge pull request #1566 from micro/image-pull-secret-fix
Fix Runtime Namespace List
This commit is contained in:
commit
041d68b1ce
@ -38,8 +38,6 @@ func (k *kubernetes) namespaceExists(name string) (bool, error) {
|
|||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
k.namespaces = namespaceList.Items
|
k.namespaces = namespaceList.Items
|
||||||
fmt.Println("HERE")
|
|
||||||
fmt.Println(k.namespaces)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the namespace exists in the cache
|
// check if the namespace exists in the cache
|
||||||
|
@ -191,11 +191,7 @@ func (c *client) List(r *Resource, opts ...ListOption) error {
|
|||||||
o(&options)
|
o(&options)
|
||||||
}
|
}
|
||||||
|
|
||||||
labels := map[string]string{
|
return c.Get(r, GetNamespace(options.Namespace))
|
||||||
"micro": "service",
|
|
||||||
}
|
|
||||||
|
|
||||||
return c.Get(r, GetLabels(labels), GetNamespace(options.Namespace))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Watch returns an event stream
|
// Watch returns an event stream
|
||||||
|
Loading…
Reference in New Issue
Block a user