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
5d92cb22
Commit
5d92cb22
authored
Dec 03, 2015
by
Marek Grabowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18031 from soltysh/issue17364
Changing ─ (U+2500) to ASCII hyphen in describe command
parents
1a59e031
db0df10b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
describe.go
pkg/kubectl/describe.go
+4
-4
No files found.
pkg/kubectl/describe.go
View file @
5d92cb22
...
...
@@ -1300,7 +1300,7 @@ func describeNode(node *api.Node, pods []*api.Pod, events *api.EventList) (strin
fmt
.
Fprintf
(
out
,
"Phase:
\t
%v
\n
"
,
node
.
Status
.
Phase
)
if
len
(
node
.
Status
.
Conditions
)
>
0
{
fmt
.
Fprint
(
out
,
"Conditions:
\n
Type
\t
Status
\t
LastHeartbeatTime
\t
LastTransitionTime
\t
Reason
\t
Message
\n
"
)
fmt
.
Fprint
(
out
,
"
────
\t
──────
\t
─────────────────
\t
──────────────────
\t
──────
\t
───────
\n
"
)
fmt
.
Fprint
(
out
,
"
----
\t
------
\t
-----------------
\t
------------------
\t
------
\t
-------
\n
"
)
for
_
,
c
:=
range
node
.
Status
.
Conditions
{
fmt
.
Fprintf
(
out
,
" %v
\t
%v
\t
%s
\t
%s
\t
%v
\t
%v
\n
"
,
c
.
Type
,
...
...
@@ -1403,7 +1403,7 @@ func describeNodeResource(pods []*api.Pod, node *api.Node, out io.Writer) error
nonTerminatedPods
:=
filterTerminatedPods
(
pods
)
fmt
.
Fprintf
(
out
,
"Non-terminated Pods:
\t
(%d in total)
\n
"
,
len
(
nonTerminatedPods
))
fmt
.
Fprint
(
out
,
" Namespace
\t
Name
\t\t
CPU Requests
\t
CPU Limits
\t
Memory Requests
\t
Memory Limits
\n
"
)
fmt
.
Fprint
(
out
,
"
─────────
\t
────
\t\t
────────────
\t
──────────
\t
───────────────
\t
─────────────
\n
"
)
fmt
.
Fprint
(
out
,
"
---------
\t
----
\t\t
------------
\t
----------
\t
---------------
\t
-------------
\n
"
)
for
_
,
pod
:=
range
nonTerminatedPods
{
req
,
limit
,
err
:=
api
.
PodRequestsAndLimits
(
pod
)
if
err
!=
nil
{
...
...
@@ -1420,7 +1420,7 @@ func describeNodeResource(pods []*api.Pod, node *api.Node, out io.Writer) error
}
fmt
.
Fprint
(
out
,
"Allocated resources:
\n
(Total limits may be over 100%, i.e., overcommitted. More info: http://releases.k8s.io/HEAD/docs/user-guide/compute-resources.md)
\n
CPU Requests
\t
CPU Limits
\t
Memory Requests
\t
Memory Limits
\n
"
)
fmt
.
Fprint
(
out
,
"
────────────
\t
──────────
\t
───────────────
\t
─────────────
\n
"
)
fmt
.
Fprint
(
out
,
"
------------
\t
----------
\t
---------------
\t
-------------
\n
"
)
reqs
,
limits
,
err
:=
getPodsTotalRequestsAndLimits
(
nonTerminatedPods
)
if
err
!=
nil
{
return
err
...
...
@@ -1482,7 +1482,7 @@ func DescribeEvents(el *api.EventList, w io.Writer) {
}
sort
.
Sort
(
SortableEvents
(
el
.
Items
))
fmt
.
Fprint
(
w
,
"Events:
\n
FirstSeen
\t
LastSeen
\t
Count
\t
From
\t
SubobjectPath
\t
Type
\t
Reason
\t
Message
\n
"
)
fmt
.
Fprint
(
w
,
"
─────────
\t
────────
\t
─────
\t
────
\t
─────────────
\t
────────
\t
──────
\t
───────
\n
"
)
fmt
.
Fprint
(
w
,
"
---------
\t
--------
\t
-----
\t
----
\t
-------------
\t
--------
\t
------
\t
-------
\n
"
)
for
_
,
e
:=
range
el
.
Items
{
fmt
.
Fprintf
(
w
,
" %s
\t
%s
\t
%d
\t
%v
\t
%v
\t
%v
\t
%v
\t
%v
\n
"
,
translateTimestamp
(
e
.
FirstTimestamp
),
...
...
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