2022-12-01 01:21:21 +02:00
|
|
|
apiVersion: nfd.k8s-sigs.io/v1alpha1
|
|
|
|
kind: NodeFeatureRule
|
|
|
|
metadata:
|
|
|
|
name: e2e-test-3
|
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
# Positive test expected to set the taints
|
|
|
|
- name: "e2e-taint-test-1"
|
|
|
|
taints:
|
|
|
|
- effect: PreferNoSchedule
|
2023-04-05 15:27:50 +03:00
|
|
|
key: "feature.node.kubernetes.io/fake-special-node"
|
2022-12-01 01:21:21 +02:00
|
|
|
value: "exists"
|
|
|
|
- effect: NoExecute
|
2023-04-05 15:27:50 +03:00
|
|
|
key: "feature.node.kubernetes.io/fake-dedicated-node"
|
2022-12-01 01:21:21 +02:00
|
|
|
value: "true"
|
|
|
|
- effect: "NoExecute"
|
2023-04-05 15:27:50 +03:00
|
|
|
key: "feature.node.kubernetes.io/performance-optimized-node"
|
2022-12-01 01:21:21 +02:00
|
|
|
value: "true"
|
|
|
|
matchFeatures:
|
|
|
|
- feature: "fake.attribute"
|
|
|
|
matchExpressions:
|
|
|
|
"attr_1": {op: IsTrue}
|
|
|
|
"attr_2": {op: IsFalse}
|
|
|
|
|
|
|
|
# Negative test not supposed to set the taints
|
|
|
|
- name: "e2e-taint-test-2"
|
|
|
|
taints:
|
|
|
|
- effect: PreferNoSchedule
|
2023-04-05 15:27:50 +03:00
|
|
|
key: "feature.node.kubernetes.io/fake-special-cpu"
|
2022-12-01 01:21:21 +02:00
|
|
|
value: "true"
|
|
|
|
matchFeatures:
|
|
|
|
- feature: "fake.attribute"
|
|
|
|
matchExpressions:
|
|
|
|
"attr_1": {op: IsTrue}
|
|
|
|
"attr_2": {op: IsTrue}
|