Use client-go's informer to replace the custom routing table config map updater #287
Labels
enhancement
New feature or request
good first issue
Good for newcomers
Hacktoberfest
Great issues to tackle for Hacktoberfest 2021
There are quite a few places where we have to consume a kubernetes resource, watch it for changes, and keep a copy of it (or some data derived from a copy of it) in memory and up-to-date. So far, we have written code from scratch that uses a
watch.Interface
to watch for changes, and uses a Kubernetes client to periodically do a full fetch of the Kubernetes resource(s) in question.In #269, we're beginning to remove some of this custom code in favor of the informer framework for the deployment cache. This issue is to replace all of the other appropriate instances of such code:
ConfigMap
in the scalerConfigMap
in the interceptorUse-Case
We will be able to delete a nontrivial amount of code by doing this work.
Specification
https://github.com/kedacore/http-add-on/blob/main/pkg/routing/config_map_updater.go
to use an informer rather than a custom-builtfor
loopThe text was updated successfully, but these errors were encountered: