instance-manager icon indicating copy to clipboard operation
instance-manager copied to clipboard

Create an informer in instance manager to cache custom resources changes

Open yuxuanzhu0214 opened this issue 1 year ago • 0 comments

Is this a BUG REPORT or FEATURE REQUEST?: FEATURE REQUEST

What happened: We want to have a controller that watches for changes in instance manager CR. One way is to rely on API server and poll periodically for all instance manager CR, but this increases the load on API server. The other way is a informer that caches the changes of instance manager CR and this event driven method reduces load on API server.

What you expected to happen: The informer can be generated using the sample script update-codegen.sh in this repo: https://github.com/kubernetes/sample-controller/blob/master/hack/update-codegen.sh

yuxuanzhu0214 avatar Aug 29 '24 16:08 yuxuanzhu0214