From 12eeab30004ced4b620ea90d1cabe34e7bce57f3 Mon Sep 17 00:00:00 2001 From: Denis Moiseev <1239415+lobziik@users.noreply.github.com> Date: Thu, 10 Feb 2022 17:47:24 +0100 Subject: [PATCH] Pass sharedInfromer instead of cvInformer to feature-gate-stopper cvInformer does not make sense for FeatureGate due to it filters out resources with name other than `version` by default. --- pkg/start/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/start/start.go b/pkg/start/start.go index d45a45a07..12f086c7f 100644 --- a/pkg/start/start.go +++ b/pkg/start/start.go @@ -457,7 +457,7 @@ func (o *Options) NewControllerContext(cb *ClientBuilder, includeTechPreview boo o.ClusterProfile, ), - StopOnFeatureGateChange: featurechangestopper.New(includeTechPreview, cvInformer.Config().V1().FeatureGates()), + StopOnFeatureGateChange: featurechangestopper.New(includeTechPreview, sharedInformers.Config().V1().FeatureGates()), } if o.EnableAutoUpdate {