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
4711a873
Commit
4711a873
authored
Nov 05, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16758 from janetkuo/remove-verbose-output
Auto commit by PR queue bot
parents
32956b7d
b8f97dd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
resource_printer.go
pkg/kubectl/resource_printer.go
+9
-9
No files found.
pkg/kubectl/resource_printer.go
View file @
4711a873
...
...
@@ -1541,11 +1541,11 @@ func (p *TemplatePrinter) PrintObj(obj runtime.Object, w io.Writer) error {
// It is way easier to debug this stuff when it shows up in
// stdout instead of just stdin. So in addition to returning
// a nice error, also print useful stuff with the writer.
fmt
.
Fprintf
(
w
,
"Error executing template: %v
\n
"
,
err
)
fmt
.
Fprintf
(
w
,
"
template was:
\n
\t
%v
\n
"
,
p
.
rawTemplate
)
fmt
.
Fprintf
(
w
,
"
raw data was:
\n
\t
%v
\n
"
,
string
(
data
))
fmt
.
Fprintf
(
w
,
"
object given to template engine was:
\n\t
%+v
\n
"
,
out
)
return
fmt
.
Errorf
(
"error executing template
'%v': '%v'
\n
----data----
\n
%+v
\n
"
,
p
.
rawTemplate
,
err
,
out
)
fmt
.
Fprintf
(
w
,
"Error executing template: %v
. Printing more information for debugging the template:
\n
"
,
err
)
fmt
.
Fprintf
(
w
,
"
\t
template was:
\n\t
\t
%v
\n
"
,
p
.
rawTemplate
)
fmt
.
Fprintf
(
w
,
"
\t
raw data was:
\n\t
\t
%v
\n
"
,
string
(
data
))
fmt
.
Fprintf
(
w
,
"
\t
object given to template engine was:
\n\t\t
%+v
\n
\n
"
,
out
)
return
fmt
.
Errorf
(
"error executing template
%q: %v"
,
p
.
rawTemplate
,
err
)
}
return
nil
}
...
...
@@ -1692,10 +1692,10 @@ func (j *JSONPathPrinter) PrintObj(obj runtime.Object, w io.Writer) error {
}
if
err
:=
j
.
JSONPath
.
Execute
(
w
,
queryObj
);
err
!=
nil
{
fmt
.
Fprintf
(
w
,
"Error executing template: %v
\n
"
,
err
)
fmt
.
Fprintf
(
w
,
"
template was:
\n
\t
%v
\n
"
,
j
.
rawTemplate
)
fmt
.
Fprintf
(
w
,
"
object given to jsonpath engine was:
\n\t
%#v
\n
"
,
queryObj
)
return
fmt
.
Errorf
(
"error executing jsonpath
'%v': '%v'
\n
----data----
\n
%+v
\n
"
,
j
.
rawTemplate
,
err
,
obj
)
fmt
.
Fprintf
(
w
,
"Error executing template: %v
. Printing more information for debugging the template:
\n
"
,
err
)
fmt
.
Fprintf
(
w
,
"
\t
template was:
\n\t
\t
%v
\n
"
,
j
.
rawTemplate
)
fmt
.
Fprintf
(
w
,
"
\t
object given to jsonpath engine was:
\n\t\t
%#v
\n
\n
"
,
queryObj
)
return
fmt
.
Errorf
(
"error executing jsonpath
%q: %v
\n
"
,
j
.
rawTemplate
,
err
)
}
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