-
Notifications
You must be signed in to change notification settings - Fork 247
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
Discover node features as annotations #863
Comments
Hmm, we just talked about this with @fmuyassarov yesterday (iirc) and I said that yeah, it should be fairly straightforward but nobody has requested it and so there's prolly no use/need for it 😅 So, I don't oppose and I think it could be useful in some scenarios as you described. I'd say the way to support annotations would be through NodeFeatureRule objects. Patches are welcome 😊 |
there's more to discuss before submitting any patches though :) Should annotations be supported in nfd-worker config, or should they be exclusive for Should there be additional flag, like What is the process to introduce new features, which cause changes to CRDs and documentation? |
For sure 😓 And give others time to chime in, too.
Good question. I was pondering this yesterday when thinking about #540. Whatever we do I think taints and annotations should do the same. I'm inclined to agree with you that
The prefix (or annotation namespace) that we currently use in NFD is
We haven't gone through K8s API review (yet) so at this point we can do it inside NFD project. Especially backwards-compatible changes (like adding |
@marquiz I'm also thinking taints and annotations are related and can be implemented in a similar way I've posted some thoughts on it on slack, copying here too:
|
What about using |
Hi @stek29 . I'm about to start working on feature to allow optionally setting taints based on node properties. Can you please confirm that you are not working on adding taints and only annotations so that I don't interfere with your work in case you are planning to ? |
@fmuyassarov I'm not working on taints since annotations haven't been looked at anyway, I'm waiting on review on annotations. |
thanks for confirming, I will then try to submit a patch for the taints soon. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
/remove-lifecycle stale |
@VillePihlava have you been working on this? |
A more urgent task came up, so I'm currently not working on this. |
Just wrote and outline of sub-tasks related to extended resources (in #1081). Annotations should follow mostly the same steps, copy-pasting them here:
Few extra considerations regarding "namespacing" i.e. prefixing of names of annotations:
/help EDIT: fixed misspellings |
@marquiz: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
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. |
If no one working on this issue, maybe I can do it. |
That would be great! I think it's yours. You can take a look at #910 (implemented support for taints) for some inspiration although the management of annotations in nfd-master will be much simpler than taints |
/assign |
@marquiz The CR example maybe like this. apiVersion: nfd.k8s-sigs.io/v1alpha1
kind: NodeFeatureRule
metadata:
name: rule
spec:
rules:
- name: "rule"
annotations:
"nfd.node.kubernetes.io/feature-annotations": "my-sample-feature"
matchFeatures:
- feature: kernel.loadedmodule
matchExpressions:
dummy: {op: Exists} And I don't understand the considerations of "namespacing",can you give me some examples? |
Yeah, correct, I misspelled it.
With "namespacing" here I mean the annotations:
"foo": "bar" (i.e. without any namespace/prefix) then NFD would add a default prefix and create something like |
Let's push this to v0.14 /milestone v0.14.0 |
@ArangoGutierrez let's drop this from v0.14, right? |
Yup, I don't have the bandwidth for this after summer break |
Let's push this to v0.15 /milestone v0.15.0 |
@ArangoGutierrez: The provided milestone is not valid for this repository. Milestones in this repository: [ Use In response to this:
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. |
/milestone v0.15 |
/assign |
What would you like to be added:
Discover node features as annotations instead of labels
Why is this needed:
Some features don't feel like they belong to labels – some extra info about topology or internal info, which won't be used for scheduling or in selection, but is nice to have on Node.
Also, there are limits on label contents in contrast to annotations.
The text was updated successfully, but these errors were encountered: