-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nfd-master: predictable handling of unprefixed names #1471
nfd-master: predictable handling of unprefixed names #1471
Conversation
Remove some stale variables that were leftover from the recent removal of nfd version annotations.
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Depends on #1470 |
f1dd050
to
9200ca3
Compare
Make the handling of unprefixed names (of labels, annotations and extended resources) well-defined and predictable. Previously the resulting output was not predictable in case the same name was coming in both the unprefixed and prefixed form, say unprefixed "foo=bar" coming from one source (be it nfd-worker or NodeFeature(Rule)) and "feature.node.kubernetes.io/foo=baz" from a NodeFeature(Rule). Previously the output value was randomly either "bar" or "baz". This patch adds prefixes to all names early in the processing "pipeline", preventing random name clashes later on.
9200ca3
to
dc5af8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go test -v ./test/e2e/ -args -nfd.repo=ghcr.io/arangogutierrez/node-feature-discovery -nfd.tag=v0.15.0-devel-129-gdc5af8be-dirty \
-kubeconfig=/Users/eduardoa/.kube/config \
-nfd.e2e-config= \
-nfd.pull-if-not-present=false \
-ginkgo.focus="\[kubernetes-sigs\] NFD master and worker" \
-test.timeout=1h \
Nov 24 11:08:50.847: INFO: The --provider flag is not set. Continuing as if --provider=skeleton had been used.
=== RUN TestE2E
I1124 11:08:50.847912 13265 e2e.go:117] Starting e2e run "fd76fdfb-fdcf-42c2-89fd-ddef8ed78fea" on Ginkgo node 1
Running Suite: Kubernetes e2e suite - /Users/eduardoa/src/github/k8s-sigs/node-feature-discovery/test/e2e
=========================================================================================================
Random Seed: 1700820530 - will randomize all specs
Will run 16 of 299 specs
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS•S•SS•SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS•S••••S•SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Ran 9 of 299 Specs in 119.999 seconds
SUCCESS! -- 9 Passed | 0 Failed | 0 Pending | 290 Skipped
/lgtm
LGTM label has been added. Git tree hash: 08602e8f2d49e3955481c6f65e69e24550b89e65
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ArangoGutierrez, marquiz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1471 +/- ##
==========================================
- Coverage 30.55% 30.51% -0.04%
==========================================
Files 58 58
Lines 7527 7530 +3
==========================================
- Hits 2300 2298 -2
- Misses 4978 4982 +4
- Partials 249 250 +1
|
Make the handling of unprefixed names (of labels, annotations and
extended resources) well-defined and predictable. Previously the
resulting output was not predictable in case the same name was coming in
both the unprefixed and prefixed form, say unprefixed
foo=bar
coming fromone source (be it nfd-worker or NodeFeature(Rule)) and
feature.node.kubernetes.io/foo=baz
from a NodeFeature(Rule).Previously the output value was randomly either
bar
orbaz
.This patch adds prefixes to all names early in the processing
"pipeline", preventing random name clashes later on.