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
93c00522
Commit
93c00522
authored
Mar 02, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4952 from rjnagal/kubectl
Add capacity information to 'kubectl describe minion'
parents
148ce12b
c63f4635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
describe.go
pkg/kubectl/describe.go
+6
-0
No files found.
pkg/kubectl/describe.go
View file @
93c00522
...
...
@@ -323,6 +323,12 @@ func (d *MinionDescriber) Describe(namespace, name string) (string, error) {
c
.
Message
)
}
}
if
len
(
minion
.
Spec
.
Capacity
)
>
0
{
fmt
.
Fprintf
(
out
,
"Capacity:
\n
"
)
for
resource
,
value
:=
range
minion
.
Spec
.
Capacity
{
fmt
.
Fprintf
(
out
,
" %s:
\t
%s
\n
"
,
resource
,
value
.
String
())
}
}
fmt
.
Fprintf
(
out
,
"Pods:
\t
(%d in total)
\n
"
,
len
(
pods
))
for
_
,
pod
:=
range
pods
{
if
pod
.
Status
.
Host
!=
name
{
...
...
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