-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NodeFeatureRules to label Nvidia NICs
This patch does the following: - Add "Nvidia NICs PCI" NFR to lable the node with `pci-15b3.present": "true"` if any of Nvidia NICs is exist - Add nfd.deployNodeFeatureRules flag and set it true by default to allow creating NFRs above - Remove the networking PCI class from the source configuration - Enhance READE documentation Signed-off-by: Waleed Mousa <waleedm@nvidia.com>
- Loading branch information
Showing
5 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
deployment/network-operator/templates/nodefeaturerules.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if .Values.nfd.deployNodeFeatureRules }} | ||
apiVersion: nfd.k8s-sigs.io/v1alpha1 | ||
kind: NodeFeatureRule | ||
metadata: | ||
name: nvidia-nics-rules | ||
spec: | ||
rules: | ||
- name: "Nvidia NICs PCI" | ||
labels: | ||
"pci-15b3.present": "true" | ||
matchFeatures: | ||
- feature: pci.device | ||
matchExpressions: | ||
vendor: {op: In, value: ["15b3"]} | ||
class: {op: In, value: ["0200", "0207"]} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters