kubernetes-sigs/container-object-storage-interface-api

Move clientset creation to consumers of this library

NicolasT opened this issue · 4 comments

It's a bit odd for a library like this to depend on viper and have code like NewObjectStorageController which then parses command-line arguments and/or grabs environment variable settings to construct a K8s clientset object.

It's up to consumers of the library to decide which command-line flag parsing library they want to use, how they want to call the flag to point to a KubeConfig file (if any), to maybe read KUBECONFIG from the environment,...

I suggest to change the API to (only) take a clientset which is (somehow) configured correctly by API consumers.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community.
/close

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.