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
6c448319
Commit
6c448319
authored
May 11, 2017
by
Nail Islamov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mentioning insecure server (which is not supported anymore)
parent
7c3f8c9b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
genericapiserver.go
staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go
+5
-5
No files found.
staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go
View file @
6c448319
...
@@ -239,8 +239,8 @@ func (s *GenericAPIServer) PrepareRun() preparedGenericAPIServer {
...
@@ -239,8 +239,8 @@ func (s *GenericAPIServer) PrepareRun() preparedGenericAPIServer {
return
preparedGenericAPIServer
{
s
}
return
preparedGenericAPIServer
{
s
}
}
}
// Run spawns the
http servers (secure and insecure)
. It only returns if stopCh is closed
// Run spawns the
secure http server
. It only returns if stopCh is closed
// or
one of the ports
cannot be listened on initially.
// or
the secure port
cannot be listened on initially.
func
(
s
preparedGenericAPIServer
)
Run
(
stopCh
<-
chan
struct
{})
error
{
func
(
s
preparedGenericAPIServer
)
Run
(
stopCh
<-
chan
struct
{})
error
{
err
:=
s
.
NonBlockingRun
(
stopCh
)
err
:=
s
.
NonBlockingRun
(
stopCh
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -251,8 +251,8 @@ func (s preparedGenericAPIServer) Run(stopCh <-chan struct{}) error {
...
@@ -251,8 +251,8 @@ func (s preparedGenericAPIServer) Run(stopCh <-chan struct{}) error {
return
nil
return
nil
}
}
// NonBlockingRun spawns the
http servers (secure and insecure)
. An error is
// NonBlockingRun spawns the
secure http server
. An error is
// returned if
either of the ports
cannot be listened on.
// returned if
the secure port
cannot be listened on.
func
(
s
preparedGenericAPIServer
)
NonBlockingRun
(
stopCh
<-
chan
struct
{})
error
{
func
(
s
preparedGenericAPIServer
)
NonBlockingRun
(
stopCh
<-
chan
struct
{})
error
{
// Use an internal stop channel to allow cleanup of the listeners on error.
// Use an internal stop channel to allow cleanup of the listeners on error.
internalStopCh
:=
make
(
chan
struct
{})
internalStopCh
:=
make
(
chan
struct
{})
...
@@ -264,7 +264,7 @@ func (s preparedGenericAPIServer) NonBlockingRun(stopCh <-chan struct{}) error {
...
@@ -264,7 +264,7 @@ func (s preparedGenericAPIServer) NonBlockingRun(stopCh <-chan struct{}) error {
}
}
}
}
// Now that
both listeners
have bound successfully, it is the
// Now that
listener
have bound successfully, it is the
// responsibility of the caller to close the provided channel to
// responsibility of the caller to close the provided channel to
// ensure cleanup.
// ensure cleanup.
go
func
()
{
go
func
()
{
...
...
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