From 7079c4616a965838491bbd57047348a7a8be236a 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 10 min Increase the NFD API controller resync period from 5 to 10 minutes. 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 10 minutes 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 84fd7d5240..fa9317057a 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, 10*time.Minute) // Add informer for NodeFeature objects if !disableNodeFeature {