From 81b0945ced2b1eaf402f24833c0fecf38dcf4da0 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 14 Dec 2022 12:51:14 +0200 Subject: [PATCH] nfd-master: fix creation of the -enable-nodefeature-api flag Extra dash caused a panic when trying to run the binary. --- cmd/nfd-master/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/nfd-master/main.go b/cmd/nfd-master/main.go index 40cafd7aeb..958d310c1e 100644 --- a/cmd/nfd-master/main.go +++ b/cmd/nfd-master/main.go @@ -94,7 +94,7 @@ func initFlags(flagset *flag.FlagSet) *master.Args { flagset.Var(&args.LabelWhiteList, "label-whitelist", "Regular expression to filter label names to publish to the Kubernetes API server. "+ "NB: the label namespace is omitted i.e. the filter is only applied to the name part after '/'.") - flagset.BoolVar(&args.EnableNodeFeatureApi, "-enable-nodefeature-api", false, + flagset.BoolVar(&args.EnableNodeFeatureApi, "enable-nodefeature-api", false, "Enable the NodeFeature CRD API for receiving node features. This will automatically disable the gRPC communication.") flagset.BoolVar(&args.NoPublish, "no-publish", false, "Do not publish feature labels")