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 c3e2315834 pkg/apis/nfd: specify CRD for custom labeling rules
Add a cluster-scoped Custom Resource Definition for specifying labeling
rules. Nodes (node features, node objects) are cluster-level objects and
thus the natural and encouraged setup is to only have one NFD deployment
per cluster - the set of underlying features of the node stays the same
independent of how many parallel NFD deployments you have. Our extension
points (hooks, feature files and now CRs) can be be used by multiple
actors (depending on us) simultaneously. Having the CRD cluster-scoped
hopefully drives deployments in this direction. It also should make
deployment of vendor-specific labeling rules easy as there is no need to
worry about the namespace.

This patch virtually replicates the source.custom.FeatureSpec in a CRD
API (located in the pkg/apis/nfd/v1alpha1 package) with the notable
exception that "MatchOn" legacy rules are not supported. Legacy rules
are left out in order to keep the CRD simple and clean.

The duplicate functionality in source/custom will be dropped by upcoming
patches.

This patch utilizes controller-gen (from sigs.k8s.io/controller-tools)
for generating the CRD and deepcopy methods. Code can be (re-)generated
with "make generate". Install controller-gen with:

  go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0

Update kustomize and helm deployments to deploy the CRD.
2021-11-17 13:40:23 +02:00
..
api/feature grpc: extend the API to send raw features 2021-11-16 17:32:28 +02:00
apihelper Update auto-generated code 2021-09-21 13:37:36 +03:00
apis/nfd/v1alpha1 pkg/apis/nfd: specify CRD for custom labeling rules 2021-11-17 13:40:23 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03: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 Send raw features over gRPC 2021-11-16 17:32:28 +02:00
nfd-master Send raw features over gRPC 2021-11-16 17:32:28 +02:00
podres topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
resourcemonitor pkg/resourcemonitor: fix typo in comment 2021-11-05 16:42:49 +02: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