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
b1be6bc8
Commit
b1be6bc8
authored
Sep 29, 2015
by
eulerzgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log err value
parent
abe5a7d5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
integration.go
cmd/integration/integration.go
+2
-2
server.go
cmd/kube-apiserver/app/server.go
+1
-1
sorting_printer.go
pkg/kubectl/sorting_printer.go
+1
-1
plugins.go
plugin/pkg/scheduler/factory/plugins.go
+1
-1
No files found.
cmd/integration/integration.go
View file @
b1be6bc8
...
@@ -934,9 +934,9 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
...
@@ -934,9 +934,9 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
}
}
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
60
,
podRunning
(
client
,
baz
.
Namespace
,
baz
.
Name
));
err
!=
nil
{
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
60
,
podRunning
(
client
,
baz
.
Namespace
,
baz
.
Name
));
err
!=
nil
{
if
pod
,
perr
:=
client
.
Pods
(
api
.
NamespaceDefault
)
.
Get
(
"phantom.bar"
);
perr
==
nil
{
if
pod
,
perr
:=
client
.
Pods
(
api
.
NamespaceDefault
)
.
Get
(
"phantom.bar"
);
perr
==
nil
{
glog
.
Fatalf
(
"FAILED: 'phantom.bar' was never deleted: %#v
"
,
pod
)
glog
.
Fatalf
(
"FAILED: 'phantom.bar' was never deleted: %#v
, err: %v"
,
pod
,
err
)
}
else
{
}
else
{
glog
.
Fatalf
(
"FAILED: (Scheduler probably didn't process deletion of 'phantom.bar') Pod never started running:
%v"
,
err
)
glog
.
Fatalf
(
"FAILED: (Scheduler probably didn't process deletion of 'phantom.bar') Pod never started running:
err: %v, perr: %v"
,
err
,
p
err
)
}
}
}
}
...
...
cmd/kube-apiserver/app/server.go
View file @
b1be6bc8
...
@@ -598,7 +598,7 @@ func (s *APIServer) getRuntimeConfigValue(apiKey string, defaultValue bool) bool
...
@@ -598,7 +598,7 @@ func (s *APIServer) getRuntimeConfigValue(apiKey string, defaultValue bool) bool
}
}
boolValue
,
err
:=
strconv
.
ParseBool
(
flagValue
)
boolValue
,
err
:=
strconv
.
ParseBool
(
flagValue
)
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Invalid value of %s: %s
"
,
apiKey
,
flagValue
)
glog
.
Fatalf
(
"Invalid value of %s: %s
, err: %v"
,
apiKey
,
flagValue
,
err
)
}
}
return
boolValue
return
boolValue
}
}
...
...
pkg/kubectl/sorting_printer.go
View file @
b1be6bc8
...
@@ -130,7 +130,7 @@ func (r *RuntimeSort) Less(i, j int) bool {
...
@@ -130,7 +130,7 @@ func (r *RuntimeSort) Less(i, j int) bool {
less
,
err
:=
isLess
(
iField
,
jField
)
less
,
err
:=
isLess
(
iField
,
jField
)
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Field %s in %v is an unsortable type: %s
"
,
r
.
field
,
iObj
,
iField
.
Kind
()
.
String
()
)
glog
.
Fatalf
(
"Field %s in %v is an unsortable type: %s
, err: %v"
,
r
.
field
,
iObj
,
iField
.
Kind
()
.
String
(),
err
)
}
}
return
less
return
less
}
}
plugin/pkg/scheduler/factory/plugins.go
View file @
b1be6bc8
...
@@ -285,7 +285,7 @@ func validatePredicateOrDie(predicate schedulerapi.PredicatePolicy) {
...
@@ -285,7 +285,7 @@ func validatePredicateOrDie(predicate schedulerapi.PredicatePolicy) {
numArgs
++
numArgs
++
}
}
if
numArgs
!=
1
{
if
numArgs
!=
1
{
glog
.
Fatalf
(
"Exactly 1 predicate argument is required
"
)
glog
.
Fatalf
(
"Exactly 1 predicate argument is required
, numArgs: %v"
,
numArgs
)
}
}
}
}
}
}
...
...
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