1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/pkg
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
..
api/feature pkg/apis/nfd: add variables to rule spec and support backreferences 2021-11-25 12:50:47 +02:00
apihelper pkg/apihelpers: split out loading of kubeconfig to a separate function 2021-11-22 16:57:42 +02:00
apis/nfd/v1alpha1 pkg/apis/nfd: support templating of "vars" 2021-11-25 12:50:47 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
generated pkg/generated: add code for interacting with CRD API 2021-11-17 18:51:34 +02:00
kubeconf topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
labeler grpc: extend the API to send raw features 2021-11-16 17:32:28 +02:00
nfd-client pkg/apihelpers: split out loading of kubeconfig to a separate function 2021-11-22 16:57:42 +02:00
nfd-master pkg/apis/nfd: add variables to rule spec and support backreferences 2021-11-25 12:50:47 +02:00
podres topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
resourcemonitor Remove fatal logging to error based on the feedback 2021-11-19 16:57:21 -05:00
topologypolicy topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
topologyupdater Update auto-generated code 2021-09-21 13:37:36 +03:00
utils utils: add methods to fetch NUMA nodes hugepages and memory capacity 2021-11-04 10:14:51 +02:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00