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
2def4434
Commit
2def4434
authored
Oct 05, 2017
by
andrewsykim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log when node is initialized in cloud controller manager
parent
6a2ec70a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
node_controller.go
pkg/controller/cloud/node_controller.go
+5
-3
No files found.
pkg/controller/cloud/node_controller.go
View file @
2def4434
...
...
@@ -320,7 +320,7 @@ func (cnc *CloudNodeController) AddCloudNode(obj interface{}) {
glog
.
Errorf
(
"%v"
,
err
)
return
err
}
else
if
instanceType
!=
""
{
glog
.
Infof
(
"Adding node label from cloud provider: %s=%s"
,
kubeletapis
.
LabelInstanceType
,
instanceType
)
glog
.
V
(
2
)
.
Infof
(
"Adding node label from cloud provider: %s=%s"
,
kubeletapis
.
LabelInstanceType
,
instanceType
)
curNode
.
ObjectMeta
.
Labels
[
kubeletapis
.
LabelInstanceType
]
=
instanceType
}
...
...
@@ -343,11 +343,11 @@ func (cnc *CloudNodeController) AddCloudNode(obj interface{}) {
return
fmt
.
Errorf
(
"failed to get zone from cloud provider: %v"
,
err
)
}
if
zone
.
FailureDomain
!=
""
{
glog
.
Infof
(
"Adding node label from cloud provider: %s=%s"
,
kubeletapis
.
LabelZoneFailureDomain
,
zone
.
FailureDomain
)
glog
.
V
(
2
)
.
Infof
(
"Adding node label from cloud provider: %s=%s"
,
kubeletapis
.
LabelZoneFailureDomain
,
zone
.
FailureDomain
)
curNode
.
ObjectMeta
.
Labels
[
kubeletapis
.
LabelZoneFailureDomain
]
=
zone
.
FailureDomain
}
if
zone
.
Region
!=
""
{
glog
.
Infof
(
"Adding node label from cloud provider: %s=%s"
,
kubeletapis
.
LabelZoneRegion
,
zone
.
Region
)
glog
.
V
(
2
)
.
Infof
(
"Adding node label from cloud provider: %s=%s"
,
kubeletapis
.
LabelZoneRegion
,
zone
.
Region
)
curNode
.
ObjectMeta
.
Labels
[
kubeletapis
.
LabelZoneRegion
]
=
zone
.
Region
}
}
...
...
@@ -367,6 +367,8 @@ func (cnc *CloudNodeController) AddCloudNode(obj interface{}) {
utilruntime
.
HandleError
(
err
)
return
}
glog
.
Infof
(
"Successfully initialized node %s with cloud provider"
,
node
.
Name
)
}
func
getCloudTaint
(
taints
[]
v1
.
Taint
)
*
v1
.
Taint
{
...
...
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