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
7f9df8c0
Commit
7f9df8c0
authored
Oct 01, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14721 from zhengguoyong/err_value
add log err value
parents
b7dbbdbc
b1be6bc8
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 @
7f9df8c0
...
...
@@ -939,9 +939,9 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
}
if
err
:=
wait
.
Poll
(
time
.
Second
,
longTestTimeout
,
podRunning
(
client
,
baz
.
Namespace
,
baz
.
Name
));
err
!=
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
{
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 @
7f9df8c0
...
...
@@ -598,7 +598,7 @@ func (s *APIServer) getRuntimeConfigValue(apiKey string, defaultValue bool) bool
}
boolValue
,
err
:=
strconv
.
ParseBool
(
flagValue
)
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
}
...
...
pkg/kubectl/sorting_printer.go
View file @
7f9df8c0
...
...
@@ -130,7 +130,7 @@ func (r *RuntimeSort) Less(i, j int) bool {
less
,
err
:=
isLess
(
iField
,
jField
)
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
}
plugin/pkg/scheduler/factory/plugins.go
View file @
7f9df8c0
...
...
@@ -285,7 +285,7 @@ func validatePredicateOrDie(predicate schedulerapi.PredicatePolicy) {
numArgs
++
}
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