1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-04-13 15:56:24 +00:00
node-feature-discovery/deployment/helm/node-feature-discovery
Markus Lehtonen b648d005e1 pkg/apis/nfd: support templating of "vars"
Support templating of var names in a similar manner as labels. Add
support for a new 'varsTemplate' field to the feature rule spec which is
treated similarly to the 'labelsTemplate' field. The value of the field
is processed through the golang "text/template" template engine and the
expanded value must contain variables in <key>=<value> format, separated
by newlines i.e.:

  - name: <rule-name>
    varsTemplate: |
      <label-1>=<value-1>
      <label-2>=<value-2>
      ...

Similar rules as for 'labelsTemplate' apply, i.e.

1. In case of matchAny is specified, the template is executed separately
   against each individual matchFeatures matcher.
2. 'vars' field has priority over 'varsTemplate'
2021-11-25 12:50:47 +02:00
..
manifests pkg/apis/nfd: support templating of "vars" 2021-11-25 12:50:47 +02:00
templates nfd-master: add -featurerules-controller flag 2021-11-22 16:57:42 +02:00
.helmignore helm: move files under deployment/helm 2021-08-16 14:44:26 +03:00
Chart.yaml deployment: optional mount of /usr/src 2021-08-26 10:52:26 +02:00
README.md helm: move files under deployment/helm 2021-08-16 14:44:26 +03:00
values.yaml pkg/apis/nfd: add variables to rule spec and support backreferences 2021-11-25 12:50:47 +02:00

Node Feature Discovery

Node Feature Discovery (NFD) is a Kubernetes add-on for detecting hardware features and system configuration. Detected features are advertised as node labels. NFD provides flexible configuration and extension points for a wide range of vendor and application specific node labeling needs.

See NFD documentation for deployment instructions.