From 70ac19ea66499abae7be1c0c05d6426430321433 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 12 Apr 2023 14:56:37 +0300 Subject: [PATCH] nfd-master: increase controller resync period to 1 hour Increase the NFD API controller resync period from 5 minutes to 1 hour. The resync causes nfd-master to replay all NodeFeature and NodeFeatureRule objects, being effectively a "big hammer reset all" button. This should only be needed as an "insurance" to fix labels et al in case they have been manually tampered (outside NFD) and against certain bugs in nfd itself. NFD is not supposed to manage anything fast-changing so 1 hour should be enough. This change only affects behavior when the NodeFeature API has been enabled (with -enable-nodefeature-api). --- pkg/nfd-master/nfd-api-controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nfd-master/nfd-api-controller.go b/pkg/nfd-master/nfd-api-controller.go index 84fd7d524..807f72b48 100644 --- a/pkg/nfd-master/nfd-api-controller.go +++ b/pkg/nfd-master/nfd-api-controller.go @@ -50,7 +50,7 @@ func newNfdController(config *restclient.Config, disableNodeFeature bool) (*nfdC nfdClient := nfdclientset.NewForConfigOrDie(config) - informerFactory := nfdinformers.NewSharedInformerFactory(nfdClient, 5*time.Minute) + informerFactory := nfdinformers.NewSharedInformerFactory(nfdClient, 1*time.Hour) // Add informer for NodeFeature objects if !disableNodeFeature {