1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
node-feature-discovery/pkg
Markus Lehtonen 8a4d3161cf pkg/apis/nfd: stricter format checking for template labels
Require that the expanded LabelsTemplate has values. That is, the
(expanded) template must consist of key=value pairs separated by
newlines. No default value will be assigned and we now return an error
if a (non-empty) line not conforming with the key=value format is
encountered.

Commit c8d73666d described that the value defaults to "true" if not
specified. That was not the case and we defaulted to an empty string,
instead.

An example:

  - name: "my rule"
    labelsTemplate: |
      my.label.1=foo
      my.label.2=

Would create these labels:

  "my.label.1": "foo"
  "my.label.2": ""

Further, the following:

  - name: "my failing rule"
    labelsTemplate: |
      my.label.3

will cause an error in the rule processing.
2021-11-24 21:31:35 +02:00
..
api/feature grpc: extend the API to send raw features 2021-11-16 17:32:28 +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: stricter format checking for template labels 2021-11-24 21:31:35 +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 nfd-master: process labeling rules from CRs 2021-11-23 09:18:07 +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