From c24885840c062ad3f0ab0345a18c924e86fad19c Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 20 May 2020 23:19:09 +0300 Subject: [PATCH] Better document the --label-whitelist flag --- README.md | 12 +++++++++--- cmd/nfd-master/main.go | 5 ++++- cmd/nfd-worker/main.go | 5 ++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 713412838..1d1f80b21 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,10 @@ nfd-master. has been enabled. --no-publish Do not publish feature labels --label-whitelist= Regular expression to filter label names to - publish to the Kubernetes API server. [Default: ] + publish to the Kubernetes API server. + NB: the label namespace is omitted i.e. the filter + is only applied to the name part after '/'. + [Default: ] --extra-label-ns= Comma separated list of allowed extra label namespaces [Default: ] --resource-labels= Comma separated list of labels to be exposed as extended resources. @@ -129,11 +132,14 @@ nfd-worker. in testing [Default: ] --sources= Comma separated list of feature sources. - [Default: cpu,iommu,kernel,local,memory,network,pci,storage,system,usb] + [Default: cpu,custom,iommu,kernel,local,memory,network,pci,storage,system,usb] --no-publish Do not publish discovered features to the cluster-local Kubernetes API server. --label-whitelist= Regular expression to filter label names to - publish to the Kubernetes API server. [Default: ] + publish to the Kubernetes API server. + NB: the label namespace is omitted i.e. the filter + is only applied to the name part after '/'. + [Default: ] --oneshot Label once and exit. --sleep-interval= Time to sleep between re-labeling. Non-positive value implies no re-labeling (i.e. infinite diff --git a/cmd/nfd-master/main.go b/cmd/nfd-master/main.go index c40203ca0..894cc9778 100644 --- a/cmd/nfd-master/main.go +++ b/cmd/nfd-master/main.go @@ -85,7 +85,10 @@ func argsParse(argv []string) (master.Args, error) { has been enabled. --no-publish Do not publish feature labels --label-whitelist= Regular expression to filter label names to - publish to the Kubernetes API server. [Default: ] + publish to the Kubernetes API server. + NB: the label namespace is omitted i.e. the filter + is only applied to the name part after '/'. + [Default: ] --extra-label-ns= Comma separated list of allowed extra label namespaces [Default: ] --resource-labels= Comma separated list of labels to be exposed as extended resources. diff --git a/cmd/nfd-worker/main.go b/cmd/nfd-worker/main.go index b5e3d6faf..1b4606782 100644 --- a/cmd/nfd-worker/main.go +++ b/cmd/nfd-worker/main.go @@ -95,7 +95,10 @@ func argsParse(argv []string) (worker.Args, error) { --no-publish Do not publish discovered features to the cluster-local Kubernetes API server. --label-whitelist= Regular expression to filter label names to - publish to the Kubernetes API server. [Default: ] + publish to the Kubernetes API server. + NB: the label namespace is omitted i.e. the filter + is only applied to the name part after '/'. + [Default: ] --oneshot Label once and exit. --sleep-interval= Time to sleep between re-labeling. Non-positive value implies no re-labeling (i.e. infinite