-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Do not query for VMUUID in vsphere cloud provider if it was explicitly passed #65152
Do not query for VMUUID in vsphere cloud provider if it was explicitly passed #65152
Conversation
/ok-to-test |
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.
Looks like the vm UUID is just used as the node instance ID. I don't see any other references to VSphereConfig.Global.VMUUID
outside of the tests.. it looks your PR implements what this field was originally intended for - to avoid reading from /sys/...
when set.
/approve
/assign @abrarshivani |
@@ -134,7 +134,7 @@ type VSphereConfig struct { | |||
WorkingDir string `gcfg:"working-dir"` | |||
// Soap round tripper count (retries = RoundTripper - 1) | |||
RoundTripperCount uint `gcfg:"soap-roundtrip-count"` | |||
// Deprecated as the virtual machines will be automatically discovered. | |||
// Is required on the controller-manager if it does not run on a VMware machine |
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.
I think we will need release note since the field was deprecated.
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. Just a minor comment
1cb5d4e
to
81e25c3
Compare
@abrarshivani I've added a Release note, does it match your expectations? I've also slightly updated the PR to do the error handling for the |
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.
Makes sense also from the perspective of the out-of-tree cloud provider
/approve
Thanks for adding release note. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abrarshivani, alvaroaleman, dougm, frapposelli 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 |
/test all [submit-queue is verifying that this PR is safe to merge] |
@alvaroaleman: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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 understand the commands that are listed here. |
Automatic merge from submit-queue (batch tested with PRs 65152, 65199, 65179, 64598, 65216). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
It allows running the kube controller-manager with the vsphere cloudprovider enabled on a machine that is not a vmware VM
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #65145
Special notes for your reviewer:
Release note:
/sig vmware