Skip to content

Commit

Permalink
nfd-master: fix creation of the -enable-nodefeature-api flag
Browse files Browse the repository at this point in the history
Extra dash caused a panic when trying to run the binary.
  • Loading branch information
marquiz committed Dec 14, 2022
1 parent 8a153c1 commit 81b0945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nfd-master/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 81b0945

Please sign in to comment.