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