Skip to content
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

extraLabelNs field has a bug #148

Closed
wangxiaoyang-dev opened this issue Apr 27, 2022 · 4 comments
Closed

extraLabelNs field has a bug #148

wangxiaoyang-dev opened this issue Apr 27, 2022 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@wangxiaoyang-dev
Copy link

What happened:
If i enable extraLabelNs field in NodeFeatureDiscovery CR, like this:
extraLabelNs:
- nvidia.com
nfd-master pod will log:
E0427 03:19:50.717545 7 nfd-master.go:367] Namespace "nvidia.com" is not allowed. Ignoring label "nvidia.com/gpu.product"
nfd-master's start parameter like this:
args:

  • '--extra-label-ns="nvidia.com"'

but nfd-master's correct start parameter should be this:
args:

  • '--extra-label-ns=nvidia.com'

What you expected to happen:
If i enable extraLabelNs field in NodeFeatureDiscovery CR, like this:
extraLabelNs:
- nvidia.com

nfd-master's start parameter should be this:
args:

  • '--extra-label-ns=nvidia.com'

nfd-master pod does not log:
E0427 03:19:50.717545 7 nfd-master.go:367] Namespace "nvidia.com" is not allowed. Ignoring label "nvidia.com/gpu.product"

How to reproduce it (as minimally and precisely as possible):
Use the newest version of node-feature-discovery-operator can reproduce this bug

Anything else we need to know?:
Here source has a bug:
https://github.com/kubernetes-sigs/node-feature-discovery-operator/blob/master/controllers/nodefeaturediscovery_controls.go#:~:text=args%20%3D%20append(args%2C%20fmt.Sprintf(%22%2D%2Dextra%2Dlabel%2Dns%3D%25q%22%2C%20strings.Join(n.ins.Spec.ExtraLabelNs%2C%20%22%2C%22)))
"--extra-label-ns=%q" should be changed to "--extra-label-ns=%s"
"--resource-labels=%q" should be changed to "--resource-labels=%s"
"--label-whitelist=%q" should be changed to "--label-whitelist=%s"

@wangxiaoyang-dev wangxiaoyang-dev added the kind/bug Categorizes issue or PR as related to a bug. label Apr 27, 2022
@marquiz
Copy link
Contributor

marquiz commented Apr 27, 2022

Thanks for reporting this @wangxiaoyang-dev! Ping @ArangoGutierrez. Looks like we need v0.4.3... 😺

@marquiz marquiz mentioned this issue Apr 27, 2022
14 tasks
@ArangoGutierrez
Copy link
Contributor

#151

@ArangoGutierrez
Copy link
Contributor

/close

@k8s-ci-robot
Copy link
Contributor

@ArangoGutierrez: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants