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
759335ab
Commit
759335ab
authored
Jan 22, 2015
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gofmt complaint
parent
74f368f5
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 @
759335ab
...
@@ -70,20 +70,20 @@ func (d *LimitRangeDescriber) Describe(namespace, name string) (string, error) {
...
@@ -70,20 +70,20 @@ func (d *LimitRangeDescriber) Describe(namespace, name string) (string, error) {
fmt
.
Fprintf
(
out
,
"Name:
\t
%s
\n
"
,
limitRange
.
Name
)
fmt
.
Fprintf
(
out
,
"Name:
\t
%s
\n
"
,
limitRange
.
Name
)
fmt
.
Fprintf
(
out
,
"Type
\t
Resource
\t
Min
\t
Max
\n
"
)
fmt
.
Fprintf
(
out
,
"Type
\t
Resource
\t
Min
\t
Max
\n
"
)
fmt
.
Fprintf
(
out
,
"----
\t
--------
\t
---
\t
---
\n
"
)
fmt
.
Fprintf
(
out
,
"----
\t
--------
\t
---
\t
---
\n
"
)
for
i
,
_
:=
range
limitRange
.
Spec
.
Limits
{
for
i
:=
range
limitRange
.
Spec
.
Limits
{
item
:=
limitRange
.
Spec
.
Limits
[
i
]
item
:=
limitRange
.
Spec
.
Limits
[
i
]
maxResources
:=
item
.
Max
maxResources
:=
item
.
Max
minResources
:=
item
.
Min
minResources
:=
item
.
Min
set
:=
map
[
api
.
ResourceName
]
bool
{}
set
:=
map
[
api
.
ResourceName
]
bool
{}
for
k
,
_
:=
range
maxResources
{
for
k
:=
range
maxResources
{
set
[
k
]
=
true
set
[
k
]
=
true
}
}
for
k
,
_
:=
range
minResources
{
for
k
:=
range
minResources
{
set
[
k
]
=
true
set
[
k
]
=
true
}
}
for
k
,
_
:=
range
set
{
for
k
:=
range
set
{
// if no value is set, we output -
// if no value is set, we output -
maxValue
:=
"-"
maxValue
:=
"-"
minValue
:=
"-"
minValue
:=
"-"
...
...
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