mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #45631 from nilebox/nilebox/remove-doc-insecure
Automatic merge from submit-queue Remove mentioning insecure server (which is not supported anymore) from API server docs **What this PR does / why we need it**: Remove mentioning insecure serving from the docs, since only secure serving is supported now.
This commit is contained in:
commit
48caf95a6c
@ -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 {
|
|||||||
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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user