-
Notifications
You must be signed in to change notification settings - Fork 256
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-topology-updater: retrieve kubelet config from API /configz
#842
Conversation
Welcome @Garrybest! |
Hi @Garrybest. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/cc @swatisehgal @fromanirh |
@Garrybest: GitHub didn't allow me to request PR reviews from the following users: fromanirh. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
I have tested the whole deployment in my own minikube, the logs show this API would works.
|
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.
Thanks for this PR! this is a interesting direction.
We tried an approach like this some time ago but we decided not to purse it. I'm in favour of this general direction though, so I'll do some archeology to see if the reasons why we stopped are still relevant or not.
/cc @Tal-or |
@fromanirh: GitHub didn't allow me to request PR reviews from the following users: Tal-or. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
Very nice. |
There is some note in K8S docs: which says: This is the reason why we decided to not pursue this direction eventually. |
Thanks for reminding. Now I try to use token first. If failed, we could fall back to use config file. |
/ok-to-test |
Thanks @Garrybest for the PR. I think this makes sense. I'm sorry I didn't have the time to review the PR this week and now I'm off to summer holidays 🙄 I will be off for four weeks but will reivew this when I'm back. I'm not entirely sure about the fallback 🧐 How about changing |
I like this idea! |
/retest |
Thanks @marquiz, I like this suggestion. Very cool 😄 |
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.
Thanks for the update @Garrybest! A few mpre comments but nothing bug
ed0177c
to
9ff5ea0
Compare
Thanks for the suggestions! |
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.
Just two more small nits and I would be good to go with this
/retest |
It seems that there is something wrong with the robot 🤣 |
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.
Thanks for working on this and the quick responses @Garrybest 😊 I think we can merge this but I'll give some time to others chime in, too
There really seems to be something odd in prow...
/retest
No problem. Thanks again for your rigorous reviewing 😄 |
/retest |
Thanks for this! I don't have any additional comments. |
👍 prow had some issues so please fix those |
Signed-off-by: Garrybest <garrybest@foxmail.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Garrybest, 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 |
@fmuyassarov @zvonkok you wanna check this or should we just merge? |
I wanted to have a look. Will review it in a couple of hours today. |
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.
/lgtm
Thanks
Now
nfd-topology-updater
tries to retrievetopologyManagerPolicy
of a node by reading kubelet config file. However, sometimes we use command line to start Kubelet instead of the config file, or sometimes the config file is modified but Kubelet has not restarted to make this file take effect.I think we'd better retrieve the latest config from Kubelet API
/configz
, Kubelet will return the configuration in its memory. This config is obviously accurate.