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
8cc7475c
Commit
8cc7475c
authored
Mar 02, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Mar 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #42218 from smarterclayton/incorrect_storageclass_printer
Automatic merge from submit-queue StorageClass should not print the namespace column Fixes #40091
parents
3769404b
fdbdbfe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
printers.go
pkg/printers/internalversion/printers.go
+4
-0
No files found.
pkg/printers/internalversion/printers.go
View file @
8cc7475c
...
...
@@ -1867,6 +1867,10 @@ func printNetworkPolicyList(list *extensions.NetworkPolicyList, w io.Writer, opt
func
printStorageClass
(
sc
*
storage
.
StorageClass
,
w
io
.
Writer
,
options
printers
.
PrintOptions
)
error
{
name
:=
sc
.
Name
if
options
.
WithNamespace
{
return
fmt
.
Errorf
(
"storageclass is not namespaced"
)
}
if
storageutil
.
IsDefaultAnnotation
(
sc
.
ObjectMeta
)
{
name
+=
" (default)"
}
...
...
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