This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
node-feature-discovery
Watch
1
Star
0
Fork
You've already forked node-feature-discovery
0
mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced
2025-03-06 08:47:04 +00:00
Code
Activity
54befffa94
node-feature-discovery
/
deployment
/
base
/
nfd-crds
/
kustomization.yaml
6 lines
96 B
YAML
Raw
Normal View
History
Unescape
Escape
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-08-31 11:10:12 +03:00
apiVersion
:
kustomize.config.k8s.io/v1beta1
kind
:
Kustomization
resources
:
apis/nfd: add CRD for communicating node features Add a new NodeFeature CRD to the nfd Kubernetes API to communicate node features over K8s api objects instead of gRPC. The new resource is namespaced which will help the management of multiple NodeFeature objects per node. This aims at enabling 3rd party detectors for custom features. In addition to communicating raw features the NodeFeature object also has a field for directly requesting labels that should be applied on the node object. Rename the crd deployment file to nfd-api-crds.yaml so that it matches the new content of the file. Also, rename the Helm subdir for CRDs to match the expected chart directory structure.
2022-07-04 17:59:53 +03:00
-
nfd-api-crds.yaml
Copy permalink