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
b186e367
Commit
b186e367
authored
May 04, 2017
by
supereagle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless code in kubelet
parent
3a259d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
kubelet_pods.go
pkg/kubelet/kubelet_pods.go
+0
-4
No files found.
pkg/kubelet/kubelet_pods.go
View file @
b186e367
...
@@ -210,10 +210,6 @@ func makeHostsMount(podDir, podIP, hostName, hostDomainName string, hostAliases
...
@@ -210,10 +210,6 @@ func makeHostsMount(podDir, podIP, hostName, hostDomainName string, hostAliases
// ensureHostsFile ensures that the given host file has an up-to-date ip, host
// ensureHostsFile ensures that the given host file has an up-to-date ip, host
// name, and domain name.
// name, and domain name.
func
ensureHostsFile
(
fileName
,
hostIP
,
hostName
,
hostDomainName
string
,
hostAliases
[]
v1
.
HostAlias
)
error
{
func
ensureHostsFile
(
fileName
,
hostIP
,
hostName
,
hostDomainName
string
,
hostAliases
[]
v1
.
HostAlias
)
error
{
if
_
,
err
:=
os
.
Stat
(
fileName
);
os
.
IsExist
(
err
)
{
glog
.
V
(
4
)
.
Infof
(
"kubernetes-managed etc-hosts file exits. Will not be recreated: %q"
,
fileName
)
return
nil
}
content
:=
hostsFileContent
(
hostIP
,
hostName
,
hostDomainName
,
hostAliases
)
content
:=
hostsFileContent
(
hostIP
,
hostName
,
hostDomainName
,
hostAliases
)
return
ioutil
.
WriteFile
(
fileName
,
content
,
0644
)
return
ioutil
.
WriteFile
(
fileName
,
content
,
0644
)
}
}
...
...
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