Merge pull request #1566 from micro/image-pull-secret-fix

Fix Runtime Namespace List
This commit is contained in:
ben-toogood 2020-04-23 18:16:38 +01:00 committed by GitHub
commit 041d68b1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -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