Skip to content

Commit 1ff7a94

Browse files
authored
Merge pull request #1612 from marquiz/devel/deperecate-crd-controller-flag
nfd-master: mark the -crd-controller flag as deprecated
2 parents b2ba043 + 638e774 commit 1ff7a94

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cmd/nfd-master/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ func main() {
5555
switch f.Name {
5656
case "featurerules-controller":
5757
klog.InfoS("-featurerules-controller is deprecated, use '-crd-controller' flag instead")
58+
case "crd-controller":
59+
klog.InfoS("-crd-controller is deprecated, will be removed in a future release along with the deprecated gRPC API")
5860
case "extra-label-ns":
5961
args.Overrides.ExtraLabelNs = overrides.ExtraLabelNs
6062
case "deny-label-ns":
@@ -138,7 +140,8 @@ func initFlags(flagset *flag.FlagSet) (*master.Args, *master.ConfigOverrideArgs)
138140
flagset.BoolVar(&args.CrdController, "featurerules-controller", true,
139141
"Enable NFD CRD API controller. DEPRECATED: use -crd-controller instead")
140142
flagset.BoolVar(&args.CrdController, "crd-controller", true,
141-
"Enable NFD CRD API controller for processing NodeFeature and NodeFeatureRule objects.")
143+
"Enable NFD CRD API controller for processing NodeFeature and NodeFeatureRule objects."+
144+
" DEPRECATED: will be removed in a future release along with the deprecated gRPC API.")
142145
flagset.IntVar(&args.Port, "port", 8080,
143146
"Port on which to listen for gRPC connections."+
144147
" DEPRECATED: will be removed in a future release along with the deprecated gRPC API.")

docs/reference/master-commandline-reference.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ nfd-master -no-publish
223223

224224
### -crd-controller
225225

226+
> **NOTE** This flag will be removed in a future release at the same time with
227+
> the deprecated gRPC API.
228+
226229
The `-crd-controller` flag specifies whether the NFD CRD API controller is
227230
enabled or not. The controller is responsible for processing
228231
[NodeFeature](../usage/custom-resources.md#nodefeature) and

0 commit comments

Comments
 (0)