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
725a8e8b
Commit
725a8e8b
authored
Feb 23, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21369 from AdoHe/kubectl_change_column_titles
Auto commit by PR queue bot
parents
d3661414
10feb3e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
cmd_test.go
pkg/kubectl/cmd/cmd_test.go
+4
-4
resource_printer.go
pkg/kubectl/resource_printer.go
+3
-3
No files found.
pkg/kubectl/cmd/cmd_test.go
View file @
725a8e8b
...
...
@@ -363,8 +363,8 @@ func ExamplePrintReplicationControllerWithNamespace() {
fmt
.
Printf
(
"Unexpected error: %v"
,
err
)
}
// Output:
// NAMESPACE
CONTROLLER
REPLICAS AGE
// beep foo
1 10y
// NAMESPACE
NAME
REPLICAS AGE
// beep foo 1 10y
}
func
ExamplePrintReplicationControllerWithWide
()
{
...
...
@@ -404,8 +404,8 @@ func ExamplePrintReplicationControllerWithWide() {
fmt
.
Printf
(
"Unexpected error: %v"
,
err
)
}
// Output:
//
CONTROLLER
REPLICAS AGE CONTAINER(S) IMAGE(S) SELECTOR
// foo
1 10y foo someimage foo=bar
//
NAME
REPLICAS AGE CONTAINER(S) IMAGE(S) SELECTOR
// foo 1 10y foo someimage foo=bar
}
func
ExamplePrintPodWithWideFormat
()
{
...
...
pkg/kubectl/resource_printer.go
View file @
725a8e8b
...
...
@@ -396,9 +396,9 @@ func (h *HumanReadablePrinter) HandledResources() []string {
// pkg/kubectl/cmd/get.go to reflect the new resource type.
var
podColumns
=
[]
string
{
"NAME"
,
"READY"
,
"STATUS"
,
"RESTARTS"
,
"AGE"
}
var
podTemplateColumns
=
[]
string
{
"TEMPLATE"
,
"CONTAINER(S)"
,
"IMAGE(S)"
,
"PODLABELS"
}
var
replicationControllerColumns
=
[]
string
{
"
CONTROLLER
"
,
"REPLICAS"
,
"AGE"
}
var
replicaSetColumns
=
[]
string
{
"
CONTROLLER
"
,
"REPLICAS"
,
"AGE"
}
var
jobColumns
=
[]
string
{
"
JOB
"
,
"SUCCESSFUL"
}
var
replicationControllerColumns
=
[]
string
{
"
NAME
"
,
"REPLICAS"
,
"AGE"
}
var
replicaSetColumns
=
[]
string
{
"
NAME
"
,
"REPLICAS"
,
"AGE"
}
var
jobColumns
=
[]
string
{
"
NAME
"
,
"SUCCESSFUL"
}
var
serviceColumns
=
[]
string
{
"NAME"
,
"CLUSTER-IP"
,
"EXTERNAL-IP"
,
"PORT(S)"
,
"AGE"
}
var
ingressColumns
=
[]
string
{
"NAME"
,
"RULE"
,
"BACKEND"
,
"ADDRESS"
}
var
endpointColumns
=
[]
string
{
"NAME"
,
"ENDPOINTS"
,
"AGE"
}
...
...
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