1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-31 04:04:51 +00:00

nfd-master: make the NodeFeatureGroupAPI feature gate effective

This commit is contained in:
Markus Lehtonen 2025-03-20 18:31:09 +02:00 committed by k8s-infra-cherrypick-robot
parent 5ba51b409f
commit bee42f3906

View file

@ -1351,6 +1351,7 @@ func (m *nfdMaster) startNfdApiController() error {
ResyncPeriod: m.config.ResyncPeriod.Duration,
K8sClient: m.k8sClient,
NodeFeatureNamespaceSelector: m.config.Restrictions.NodeFeatureNamespaceSelector,
DisableNodeFeatureGroup: !nfdfeatures.NFDFeatureGate.Enabled(nfdfeatures.NodeFeatureGroupAPI),
})
if err != nil {
return fmt.Errorf("failed to initialize CRD controller: %w", err)