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
a1e46a9d
Unverified
Commit
a1e46a9d
authored
Jan 08, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71560 from appvia/hostname-change-noop
Don't log a warning to override hostname if there's no change.
parents
cc67ccfd
8974b4f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
setters.go
pkg/kubelet/nodestatus/setters.go
+1
-1
No files found.
pkg/kubelet/nodestatus/setters.go
View file @
a1e46a9d
...
@@ -139,7 +139,7 @@ func NodeAddress(nodeIP net.IP, // typically Kubelet.nodeIP
...
@@ -139,7 +139,7 @@ func NodeAddress(nodeIP net.IP, // typically Kubelet.nodeIP
// no existing Hostname address found, add it
// no existing Hostname address found, add it
klog
.
Warningf
(
"adding overridden hostname of %v to cloudprovider-reported addresses"
,
hostname
)
klog
.
Warningf
(
"adding overridden hostname of %v to cloudprovider-reported addresses"
,
hostname
)
nodeAddresses
=
append
(
nodeAddresses
,
v1
.
NodeAddress
{
Type
:
v1
.
NodeHostName
,
Address
:
hostname
})
nodeAddresses
=
append
(
nodeAddresses
,
v1
.
NodeAddress
{
Type
:
v1
.
NodeHostName
,
Address
:
hostname
})
}
else
{
}
else
if
existingHostnameAddress
.
Address
!=
hostname
{
// override the Hostname address reported by the cloud provider
// override the Hostname address reported by the cloud provider
klog
.
Warningf
(
"replacing cloudprovider-reported hostname of %v with overridden hostname of %v"
,
existingHostnameAddress
.
Address
,
hostname
)
klog
.
Warningf
(
"replacing cloudprovider-reported hostname of %v with overridden hostname of %v"
,
existingHostnameAddress
.
Address
,
hostname
)
existingHostnameAddress
.
Address
=
hostname
existingHostnameAddress
.
Address
=
hostname
...
...
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