Skip to content

Namespace enforcing wrapper for client.Client #1073

Closed
@alvaroaleman

Description

@alvaroaleman

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

Metadata

Metadata

Labels

help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions