Closed
Description
Currently when using the client.Client
, all functions that Get/Create/List/DeleteCollection
need to know the namespace when interacting with namespaced objects. It would be useful to have a wrapper for the client.Client
that always sets the namespace so it doesn't need to be passed around everywhere.
Should probably be constructed like this:
func NewNamespaceWrapper(upstream Client, namespace string) Client {
/kind feature
/help