keikoproj / instance-manager

Create and manage instance groups with Kubernetes
Apache License 2.0
155 stars 40 forks source link

Create an informer in instance manager to cache custom resources changes #445

Closed yuxuanzhu0214 closed 1 month ago

yuxuanzhu0214 commented 2 months ago

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