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/docs
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
..
_includes/templates docs: update jekyll-rdt-theme to v2.0.10 2021-10-11 11:26:37 +03:00
advanced NFD-Topology-Updater: Bump NRT API to version v0.0.12 2021-11-16 13:28:23 +00:00
contributing docs: drop broken/outdated reference to kubernetes-incubator 2020-11-02 17:07:12 +02:00
get-started pkg/apis/nfd: specify CRD for custom labeling rules 2021-11-17 13:40:23 +02:00
.gitignore docs: initial site setup 2020-10-08 10:50:04 +03:00
404.html docs: initial site setup 2020-10-08 10:50:04 +03:00
_config.yml docs: update jekyll-rdt-theme to v2.0.10 2021-10-11 11:26:37 +03:00
Gemfile docs: update ruby deps 2021-10-11 11:27:16 +03:00
Gemfile.lock docs: update ruby deps 2021-10-11 11:27:16 +03:00
index.html docs: add landing page and quick-start guide 2020-10-29 13:29:10 +02:00
mdl-style.rb docs: fix TOCs 2021-09-30 10:26:25 +03:00