Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding Values in Manager #226

Closed
shawn-hurley opened this issue Nov 29, 2018 · 1 comment · Fixed by #227
Closed

Overriding Values in Manager #226

shawn-hurley opened this issue Nov 29, 2018 · 1 comment · Fixed by #227
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@shawn-hurley
Copy link

As a user, I would like the ability to specify the cache and client that the manager injects into other objects.

I am proposing that the manager options expose the new functions for client and cache.

NewCache  func(config *rest.Config, opts cache.Options) (cache.Cache, error)
NewClient func(config *rest.Config, options client.Options) (client.Client, error)

The defaults will stay the same, this will allow users to change the client.

I also believe that their should be a new method NewDelegatingClient func(cache cache.Cache, client client.Client) (client.Client, error) that will allow a user to define which delegating client they would like to use. The default should be the same as it is today IMO.

/cc @DirectXMan12 @droot @ironcladlou

@shawn-hurley
Copy link
Author

/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 29, 2018
shawn-hurley pushed a commit to shawn-hurley/controller-runtime that referenced this issue Nov 29, 2018
* Allow the user to specify in the options how to create the client,
cache, and how to construct the delegating client.

fixes kubernetes-sigs#226
shawn-hurley pushed a commit to shawn-hurley/controller-runtime that referenced this issue Dec 5, 2018
* Allow the user to specify in the options how to create the client,
cache, and how to construct the delegating client.

fixes kubernetes-sigs#226
shawn-hurley pushed a commit to shawn-hurley/controller-runtime that referenced this issue Dec 6, 2018
* Allow the user to specify in the options how to create the client,
cache, and how to construct the delegating client.

fixes kubernetes-sigs#226
droot pushed a commit to droot/controller-runtime that referenced this issue Jan 24, 2019
* Allow the user to specify in the options how to create the client,
cache, and how to construct the delegating client.

fixes kubernetes-sigs#226
DirectXMan12 pushed a commit that referenced this issue Jan 31, 2020
Move the e2e test library and existing projects to test folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants