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
0c548ea4
Commit
0c548ea4
authored
Aug 05, 2017
by
Malepati Bala Siva Sai Akhil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in variable of remote
Fix typo in variable of remote_runtime.go
parent
84844bb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
remote_runtime.go
pkg/kubelet/remote/remote_runtime.go
+3
-3
No files found.
pkg/kubelet/remote/remote_runtime.go
View file @
0c548ea4
...
...
@@ -38,20 +38,20 @@ type RemoteRuntimeService struct {
}
// NewRemoteRuntimeService creates a new internalapi.RuntimeService.
func
NewRemoteRuntimeService
(
endpoint
string
,
connectionTimout
time
.
Duration
)
(
internalapi
.
RuntimeService
,
error
)
{
func
NewRemoteRuntimeService
(
endpoint
string
,
connectionTim
e
out
time
.
Duration
)
(
internalapi
.
RuntimeService
,
error
)
{
glog
.
Infof
(
"Connecting to runtime service %s"
,
endpoint
)
addr
,
dailer
,
err
:=
util
.
GetAddressAndDialer
(
endpoint
)
if
err
!=
nil
{
return
nil
,
err
}
conn
,
err
:=
grpc
.
Dial
(
addr
,
grpc
.
WithInsecure
(),
grpc
.
WithTimeout
(
connectionTimout
),
grpc
.
WithDialer
(
dailer
))
conn
,
err
:=
grpc
.
Dial
(
addr
,
grpc
.
WithInsecure
(),
grpc
.
WithTimeout
(
connectionTim
e
out
),
grpc
.
WithDialer
(
dailer
))
if
err
!=
nil
{
glog
.
Errorf
(
"Connect remote runtime %s failed: %v"
,
addr
,
err
)
return
nil
,
err
}
return
&
RemoteRuntimeService
{
timeout
:
connectionTimout
,
timeout
:
connectionTim
e
out
,
runtimeClient
:
runtimeapi
.
NewRuntimeServiceClient
(
conn
),
},
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