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
be2a234a
Commit
be2a234a
authored
May 17, 2018
by
xuzhonghu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix little bug in kube-scheduler options
parent
da8e25c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
deprecated.go
cmd/kube-scheduler/app/options/deprecated.go
+1
-1
insecure_serving.go
cmd/kube-scheduler/app/options/insecure_serving.go
+1
-1
No files found.
cmd/kube-scheduler/app/options/deprecated.go
View file @
be2a234a
...
@@ -72,7 +72,7 @@ func (o *DeprecatedOptions) AddFlags(fs *pflag.FlagSet, cfg *componentconfig.Kub
...
@@ -72,7 +72,7 @@ func (o *DeprecatedOptions) AddFlags(fs *pflag.FlagSet, cfg *componentconfig.Kub
// Validate validates the deprecated scheduler options.
// Validate validates the deprecated scheduler options.
func
(
o
*
DeprecatedOptions
)
Validate
()
[]
error
{
func
(
o
*
DeprecatedOptions
)
Validate
()
[]
error
{
if
o
!
=
nil
{
if
o
=
=
nil
{
return
nil
return
nil
}
}
return
nil
return
nil
...
...
cmd/kube-scheduler/app/options/insecure_serving.go
View file @
be2a234a
...
@@ -153,7 +153,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error {
...
@@ -153,7 +153,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error {
errors
:=
[]
error
{}
errors
:=
[]
error
{}
if
o
.
BindPort
<=
0
||
o
.
BindPort
>
32767
{
if
o
.
BindPort
<=
0
||
o
.
BindPort
>
32767
{
errors
=
append
(
errors
,
fmt
.
Errorf
(
"--
insecure-
port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port"
,
o
.
BindPort
))
errors
=
append
(
errors
,
fmt
.
Errorf
(
"--port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port"
,
o
.
BindPort
))
}
}
if
len
(
o
.
BindAddress
)
>
0
&&
net
.
ParseIP
(
o
.
BindAddress
)
==
nil
{
if
len
(
o
.
BindAddress
)
>
0
&&
net
.
ParseIP
(
o
.
BindAddress
)
==
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