Skip to content

Commit a22e2e4

Browse files
yuva29sajmera-pensando
authored andcommitted
[Helm] Update NFD rules to label vnics along with nics (#968)
Co-authored-by: Yuva Shankar <[email protected]>
1 parent 5f36c5b commit a22e2e4

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

hack/k8s-patch/template-patch/nic-nfd-default-rule.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ metadata:
88
# source2: https://devicehunt.com/view/type/pci/vendor/1dd8
99
spec:
1010
rules:
11+
- name: amd-vnic
12+
labels:
13+
feature.node.kubernetes.io/amd-vnic: "true"
14+
matchAny:
15+
- matchFeatures:
16+
- feature: kernel.loadedmodule
17+
matchExpressions:
18+
ionic: {op: Exists}
19+
- feature: pci.device
20+
matchExpressions:
21+
vendor: {op: In, value: ["1dd8"]} # AMD Pensando Systems
22+
device: {op: In, value: ["1003"]} # DSC Ethernet Controller VF
23+
subsystem_vendor: {op: In, value: ["1dd8"]}
24+
subsystem_device: {op: In, value: ["5201"]} # POLLARA-1Q400 100/200/400G 1-port Card
1125
- name: amd-nic
1226
labels:
1327
feature.node.kubernetes.io/amd-nic: "true"

helm-charts-k8s/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,4 +319,3 @@ Kubernetes: `>= 1.29.0-0`
319319
| remediation-controller.controller.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | `1` | |
320320
| remediation-controller.controller.image | string | `"quay.io/argoproj/workflow-controller:v3.6.5"` | |
321321
| remediation-controller.controller.nodeSelector | object | `{}` | |
322-

helm-charts-k8s/templates/nic-nfd-default-rule.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ metadata:
88
# source2: https://devicehunt.com/view/type/pci/vendor/1dd8
99
spec:
1010
rules:
11+
- name: amd-vnic
12+
labels:
13+
feature.node.kubernetes.io/amd-vnic: "true"
14+
matchAny:
15+
- matchFeatures:
16+
- feature: kernel.loadedmodule
17+
matchExpressions:
18+
ionic: {op: Exists}
19+
- feature: pci.device
20+
matchExpressions:
21+
vendor: {op: In, value: ["1dd8"]} # AMD Pensando Systems
22+
device: {op: In, value: ["1003"]} # DSC Ethernet Controller VF
23+
subsystem_vendor: {op: In, value: ["1dd8"]}
24+
subsystem_device: {op: In, value: ["5201"]} # POLLARA-1Q400 100/200/400G 1-port Card
1125
- name: amd-nic
1226
labels:
1327
feature.node.kubernetes.io/amd-nic: "true"

0 commit comments

Comments
 (0)