Commit 8cc7475c authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
......@@ -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)"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment