-
Notifications
You must be signed in to change notification settings - Fork 259
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
feat: add support to differentiate specific hypervisors on s390x #2055
base: master
Are you sure you want to change the base?
Conversation
Welcome @routerhan! |
Hi @routerhan. 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/assign @routerhan |
ff3bfd4
to
59d8bb5
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.
lgtm
/cc @marquiz
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.
Thank you @routerhan for the enhancement.
Sorry, I'm a bit late in the game and rampaging here 🙄
First observation, I'd consider naming the feature hypervisor_name
. The reason being that on x86_64 side we already have HYPERVISOR
(flag telling if we're virtualized). We might want to add this new feature on the x86 side, and using the same name would be a bonus (HYPERVISOR
and hypervisor
are not truly clashing but definitely confusing if we have both).
Second thought/question. We have the cpu model feature (model
and getCPUModel()
) so we could consider putting this there. Then also renaming would not be important. Writing this I'm not really certain would it be more logical under cpuid
or model
feature 😊
Thoughts @routerhan @mfranczy @ArangoGutierrez ?
/ok-to-test
Good point! I believe cpuid should strictly refer to cases where it directly invokes the CPUID instruction for clarity. My reasoning is that this check primarily determines which virtualization software is running on the node, rather than verifying CPU virtualization capabilities or whether the node itself is a virtual machine. |
Isn't this exactly what this PR is doing(?) |
My understanding of this PR is that it detects which hypervisor is running on the node that hosts VMs, not if it the node is a guest itself. But maybe I am wrong @routerhan? |
Ah that's my bad, sorry.
I should read the issue before reviewing the PR. |
Thank you @marquiz for the feedbacks.
It also makes sense to me to put it under One more thing, this PR is s390x-specific solution, other architecture like x86 would throw an error, since they do not have |
AFAIU, |
d755c33
to
1e4e696
Compare
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.36.2 to 1.36.3. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](onsi/gomega@v1.36.2...v1.36.3) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
0ae3e06
to
d6a7238
Compare
/retest |
1 similar comment
/retest |
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.
Thank you @routerhan. One more ask (that I missed earlier): I think it would be nice to document this in the "Available features" table in docs/usage/customization-guide.md
, even if it's just s390x for now (note that it's s390x-only)
Signed-off-by: Ching Han Chen <[email protected]>
d6a7238
to
8161e6e
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.
Thanks @routerhan. Looks good to me
/assign @ArangoGutierrez
ping @mfranczy
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marquiz, mfranczy, ozhuraki, routerhan 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 |
Resolves #2037