Skip to content

Support uncached client for ClusterCache #12784

@haijianyang

Description

@haijianyang

What would you like to be added (User Story)?

As an operator, I expect ClusterCache to support uncached clients to reduce unnecessary memory usage.

Detailed Description

Currently, ClusterCache's GetClient method returns the cached client. While we can specify which objects are not cached using the DisableFor, this is cumbersome if we want to cache some objects but not most. It's easy to forget to configure the DisableFor, causing some objects to be cached and consuming unnecessary memory.

Therefore, I think ClusterCache can support uncached clients.

Anything else you would like to add?

No response

Label(s) to be applied

/kind feature
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

Metadata

Metadata

Assignees

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.priority/backlogHigher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions