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
⚠ Add manager option to enable caching of unstructured objects #1338
⚠ Add manager option to enable caching of unstructured objects #1338
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joelanford The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold For more discussion since this is a breaking change. |
5c4ad30
to
6526b3a
Compare
/retest |
@joelanford: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/lgtm |
Could another approach be to make a new client.Option for this and that would not be a breaking change I think? I am not saying we should just wondering if we looked at that approach. |
@shawn-hurley I'm not following your suggestion. I was also trying to think of a non-breaking change approach, but nothing is coming to me that would make this option available to arbitrary IMO, it's a little bit odd that we would have cache-related methods on the I suppose we could make a new interface type CachingClientBuilder interface {
ClientBuilder
WithUncached(objs ...client.Object) ClientBuilder
CacheUnstructured(v bool) ClientBuilder
} But even with that approach, @estroz made the astute observation that further configurations that affect the |
Admittedly, have not been involved enough over the last year to know if this makes sense so if it doesn't I am sorry :). I was wondering if it could be a option here: such that at Maybe this doesn't make sense because the |
@joelanford: PR needs rebase. 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. |
I'm quite confused about manager option(filed ClientBuilder -> filed NewClient) in release v0.8.3 and v0.9.0.alpha1. Why the6. field fallback to release v0.6.5. Could someone explain it? Which version should I use when I write my own controller... |
This PR adds a new manager/cluster option, called
ClientCacheUnstructured
that configures the ClientBuilder to build a client that caches unstructured objects.It is a breaking change because it requires a new method on the
cluster.ClientBuilder
interface.This is a follow-up based on #1332 (comment)