mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-09 02:07:03 +00:00
Fix a bug in checking the allowed ".feature.node.kubernetes.io" ns suffix for extended resources. Also update e2e-tests to cover this case.
32 lines
830 B
YAML
32 lines
830 B
YAML
apiVersion: nfd.k8s-sigs.io/v1alpha1
|
|
kind: NodeFeatureRule
|
|
metadata:
|
|
name: e2e-extened-resource-test
|
|
spec:
|
|
rules:
|
|
- name: "e2e no ns rule"
|
|
extendedResources:
|
|
nons: "123"
|
|
matchFeatures:
|
|
- feature: "fake.attribute"
|
|
matchExpressions:
|
|
"attr_1": {op: IsTrue}
|
|
"attr_2": {op: IsFalse}
|
|
|
|
- name: "e2e Dynamic rule"
|
|
extendedResources:
|
|
vendor.io/dynamic: "@fake.attribute.attr_3"
|
|
matchFeatures:
|
|
- feature: "fake.attribute"
|
|
matchExpressions:
|
|
"attr_3": {op: Exists}
|
|
|
|
- name: "e2e static rule"
|
|
extendedResources:
|
|
vendor.feature.node.kubernetes.io/static: "123"
|
|
matchFeatures:
|
|
|
|
- name: "e2e not allowed rule"
|
|
extendedResources:
|
|
bad.kubernetes.io/malo: "999"
|
|
matchFeatures:
|