-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1016 from marquiz/devel/e2e-nodefeature
test/e2e: more comprehensive test for NodeFeature objects
- Loading branch information
Showing
4 changed files
with
202 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: nfd.k8s-sigs.io/v1alpha1 | ||
kind: NodeFeature | ||
metadata: | ||
# This name should ensure that it's processed later than that from nfd-worker | ||
name: zzz-e2e-features-1 | ||
spec: | ||
# Features for NodeFeatureRule matching | ||
features: | ||
flags: | ||
e2e.flags: | ||
elements: | ||
flag_1: {} | ||
flag_2: {} | ||
attributes: | ||
# Override features from the fake sources | ||
fake.attribute: | ||
elements: | ||
attr_2: "true" | ||
instances: | ||
# Append to features from the fake sources | ||
fake.instance: | ||
elements: | ||
- attributes: | ||
attr_1: "true" | ||
attr_2: "9" | ||
# Labels to be created | ||
labels: | ||
e2e-nodefeature-test-1: "obj-1" | ||
e2e-nodefeature-test-2: "obj-1" | ||
# Override feature from nfd-worker | ||
fake-fakefeature3: "overridden" |
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,8 @@ | ||
apiVersion: nfd.k8s-sigs.io/v1alpha1 | ||
kind: NodeFeature | ||
metadata: | ||
name: zzz-e2e-features-2 | ||
spec: | ||
labels: | ||
e2e-nodefeature-test-1: "overridden-from-obj-2" | ||
e2e-nodefeature-test-3: "obj-2" |
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