Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
81e25c37
Unverified
Commit
81e25c37
authored
Jun 15, 2018
by
Alvaro Aleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not query for VMUUID if it was explicitly passed
parent
3abba251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
vsphere.go
pkg/cloudprovider/providers/vsphere/vsphere.go
+9
-5
No files found.
pkg/cloudprovider/providers/vsphere/vsphere.go
View file @
81e25c37
...
...
@@ -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
// VMUUID is the VM Instance UUID of virtual machine which can be retrieved from instanceUuid
// property in VmConfigInfo, or also set as vc.uuid in VMX file.
// If not set, will be fetched from the machine via sysfs (requires root)
...
...
@@ -442,10 +442,14 @@ func newControllerNode(cfg VSphereConfig) (*VSphere, error) {
glog
.
Errorf
(
"Failed to get hostname. err: %+v"
,
err
)
return
nil
,
err
}
vs
.
vmUUID
,
err
=
getVMUUID
()
if
err
!=
nil
{
glog
.
Errorf
(
"Failed to get uuid. err: %+v"
,
err
)
return
nil
,
err
if
cfg
.
Global
.
VMUUID
!=
""
{
vs
.
vmUUID
=
cfg
.
Global
.
VMUUID
}
else
{
vs
.
vmUUID
,
err
=
getVMUUID
()
if
err
!=
nil
{
glog
.
Errorf
(
"Failed to get uuid. err: %+v"
,
err
)
return
nil
,
err
}
}
runtime
.
SetFinalizer
(
vs
,
logout
)
return
vs
,
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment