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
fa563dce
Commit
fa563dce
authored
May 16, 2017
by
xilabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix self link error of generic resources in describe command
parent
ed4b25e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
describe.go
pkg/printers/internalversion/describe.go
+4
-4
No files found.
pkg/printers/internalversion/describe.go
View file @
fa563dce
...
@@ -224,7 +224,7 @@ func printUnstructuredContent(w PrefixWriter, level int, content map[string]inte
...
@@ -224,7 +224,7 @@ func printUnstructuredContent(w PrefixWriter, level int, content map[string]inte
if
slice
.
ContainsString
(
skip
,
skipExpr
,
nil
)
{
if
slice
.
ContainsString
(
skip
,
skipExpr
,
nil
)
{
continue
continue
}
}
w
.
Write
(
level
,
fmt
.
Sprintf
(
"%s:
\n
"
,
smartLabelFor
(
field
)
))
w
.
Write
(
level
,
"%s:
\n
"
,
smartLabelFor
(
field
))
printUnstructuredContent
(
w
,
level
+
1
,
typedValue
,
skipExpr
,
skip
...
)
printUnstructuredContent
(
w
,
level
+
1
,
typedValue
,
skipExpr
,
skip
...
)
case
[]
interface
{}
:
case
[]
interface
{}
:
...
@@ -232,13 +232,13 @@ func printUnstructuredContent(w PrefixWriter, level int, content map[string]inte
...
@@ -232,13 +232,13 @@ func printUnstructuredContent(w PrefixWriter, level int, content map[string]inte
if
slice
.
ContainsString
(
skip
,
skipExpr
,
nil
)
{
if
slice
.
ContainsString
(
skip
,
skipExpr
,
nil
)
{
continue
continue
}
}
w
.
Write
(
level
,
fmt
.
Sprintf
(
"%s:
\n
"
,
smartLabelFor
(
field
)
))
w
.
Write
(
level
,
"%s:
\n
"
,
smartLabelFor
(
field
))
for
_
,
child
:=
range
typedValue
{
for
_
,
child
:=
range
typedValue
{
switch
typedChild
:=
child
.
(
type
)
{
switch
typedChild
:=
child
.
(
type
)
{
case
map
[
string
]
interface
{}
:
case
map
[
string
]
interface
{}
:
printUnstructuredContent
(
w
,
level
+
1
,
typedChild
,
skipExpr
,
skip
...
)
printUnstructuredContent
(
w
,
level
+
1
,
typedChild
,
skipExpr
,
skip
...
)
default
:
default
:
w
.
Write
(
level
+
1
,
fmt
.
Sprintf
(
"%v
\n
"
,
typedChild
)
)
w
.
Write
(
level
+
1
,
"%v
\n
"
,
typedChild
)
}
}
}
}
...
@@ -247,7 +247,7 @@ func printUnstructuredContent(w PrefixWriter, level int, content map[string]inte
...
@@ -247,7 +247,7 @@ func printUnstructuredContent(w PrefixWriter, level int, content map[string]inte
if
slice
.
ContainsString
(
skip
,
skipExpr
,
nil
)
{
if
slice
.
ContainsString
(
skip
,
skipExpr
,
nil
)
{
continue
continue
}
}
w
.
Write
(
level
,
fmt
.
Sprintf
(
"%s:
\t
%v
\n
"
,
smartLabelFor
(
field
),
typedValue
)
)
w
.
Write
(
level
,
"%s:
\t
%v
\n
"
,
smartLabelFor
(
field
),
typedValue
)
}
}
}
}
}
}
...
...
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