fix(): informer should now reach to changes and not process everything every 2 seconds. also corrected path in probes
Some checks failed
Lint and Test Charts / lint-test (push) Has been cancelled
Build and Test / Test (push) Failing after 21s
Build and Test / Build_Image_arm64 (push) Successful in 2m4s
Build and Test / Build_Image_amd64 (push) Has been cancelled

This commit is contained in:
2026-01-20 21:55:32 +01:00
parent 73afa9c9f7
commit 1da2e795c2
4 changed files with 11 additions and 29 deletions

View File

@@ -21,8 +21,7 @@ func StartLeaseInformer(cfg *Config, stopCh <-chan struct{}) error {
if err != nil {
return fmt.Errorf("Could not generate client for informer: %s", err.Error())
}
factory := informers.NewSharedInformerFactoryWithOptions(&client, 0, informers.WithNamespace("kube-system"))
factory := informers.NewSharedInformerFactoryWithOptions(client, 0, informers.WithNamespace("kube-system"))
leaseInformer := factory.Coordination().V1().Leases().Informer()
leaseInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{