1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-31 04:04:51 +00:00
node-feature-discovery/source/cpu
Fabiano Fidêncio 10672e1bba cpu: Expose the total number of keys for TDX
The total amount of keys that can be used on a specific TDX system is
exposed via the cgroups misc.capacity. See:

```
$ cat /sys/fs/cgroup/misc.capacity
tdx 31
```

The first step to properly manage the amount of keys present in a node
is exposing it via the NFD, and that's exactly what this commit does.

An example of how it ends up being exposed via the NFD:

```
$ kubectl get node 984fee00befb.jf.intel.com -o jsonpath='{.metadata.labels}'  | jq | grep tdx.total_keys
  "feature.node.kubernetes.io/cpu-security.tdx.total_keys": "31",
```

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
2023-03-31 09:12:26 +02:00
..
coprocessor_ppc64le.go cpu: support for detecting nx-gzip coprocessor feature 2023-01-17 23:18:16 -08:00
coprocessor_stub.go cpu: support for detecting nx-gzip coprocessor feature 2023-01-17 23:18:16 -08:00
cpu.go cpu: expose AMD SEV support 2023-03-30 15:19:43 +02:00
cpu_test.go source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
cpuid_amd64.go source/cpu: implement FeatureSource 2021-11-11 18:33:40 +02:00
cpuid_linux_arm.go source/cpu: fix build flags of cpuid detection 2023-02-17 21:46:05 +02:00
cpuid_linux_arm64.go source/cpu: fix build flags of cpuid detection 2023-02-17 21:46:05 +02:00
cpuid_linux_ppc64le.go source/cpu: fix build flags of cpuid detection 2023-02-17 21:46:05 +02:00
cpuid_linux_s390x.go source/cpu: fix build flags of cpuid detection 2023-02-17 21:46:05 +02:00
cpuid_stub.go source/cpu: fix build flags of cpuid detection 2023-02-17 21:46:05 +02:00
cstate_amd64.go pkg/utils: move hostpath helpers from source to utils 2022-10-06 14:28:24 +03:00
cstate_stub.go source/cpu: implement FeatureSource 2021-11-11 18:33:40 +02:00
power_amd64.go pkg/utils: move hostpath helpers from source to utils 2022-10-06 14:28:24 +03:00
power_stub.go source/cpu: Fix compile error for non-amd64 arches 2021-11-25 13:41:57 +01:00
pstate_amd64.go pkg/utils: move hostpath helpers from source to utils 2022-10-06 14:28:24 +03:00
pstate_stub.go source: fix gofmt errors 2021-10-22 12:01:31 +03:00
rdt_amd64.go source: fix gofmt errors 2021-10-22 12:01:31 +03:00
rdt_stub.go source: fix gofmt errors 2021-10-22 12:01:31 +03:00
security_amd64.go cpu: Expose the total number of keys for TDX 2023-03-31 09:12:26 +02:00
security_s390x.go pkg/utils: move hostpath helpers from source to utils 2022-10-06 14:28:24 +03:00
security_stub.go cpu: re-organize security features 2022-06-28 13:38:31 +03:00