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
01fbe64a
Commit
01fbe64a
authored
Nov 09, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16777 from zhengguoyong/add_log_warning2
Auto commit by PR queue bot
parents
5fe3733f
287b9e89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
allocator.go
pkg/registry/service/portallocator/allocator.go
+3
-1
No files found.
pkg/registry/service/portallocator/allocator.go
View file @
01fbe64a
...
...
@@ -23,6 +23,8 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/registry/service/allocator"
"k8s.io/kubernetes/pkg/util"
"github.com/golang/glog"
)
// Interface manages the allocation of ports out of a range. Interface
...
...
@@ -112,7 +114,7 @@ func (r *PortAllocator) AllocateNext() (int, error) {
func
(
r
*
PortAllocator
)
Release
(
port
int
)
error
{
ok
,
offset
:=
r
.
contains
(
port
)
if
!
ok
{
// TODO: log a warning
glog
.
Warningf
(
"port is not in the range when release it. port: %v"
,
port
)
return
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