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
bd559e24
Unverified
Commit
bd559e24
authored
Jul 19, 2018
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tolerate missing column headers in server-side print output
parent
dc5f6151
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
humanreadable.go
pkg/printers/humanreadable.go
+5
-0
No files found.
pkg/printers/humanreadable.go
View file @
bd559e24
...
@@ -371,6 +371,11 @@ func PrintTable(table *metav1beta1.Table, output io.Writer, options PrintOptions
...
@@ -371,6 +371,11 @@ func PrintTable(table *metav1beta1.Table, output io.Writer, options PrintOptions
for
_
,
row
:=
range
table
.
Rows
{
for
_
,
row
:=
range
table
.
Rows
{
first
:=
true
first
:=
true
for
i
,
cell
:=
range
row
.
Cells
{
for
i
,
cell
:=
range
row
.
Cells
{
if
i
>=
len
(
table
.
ColumnDefinitions
)
{
// https://issue.k8s.io/66379
// don't panic in case of bad output from the server, with more cells than column definitions
break
}
column
:=
table
.
ColumnDefinitions
[
i
]
column
:=
table
.
ColumnDefinitions
[
i
]
if
!
options
.
Wide
&&
column
.
Priority
!=
0
{
if
!
options
.
Wide
&&
column
.
Priority
!=
0
{
continue
continue
...
...
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