Change:
<!-- This form is for bug reports and feature requests ONLY! If you're looking for help check and the . --Is this a BUG REPORT or FEATURE REQUEST?: bug /kind bug What happened: returns the following: VOLUME label is missing. What you expected to happen: Environment: Kubernetes version (use ): Client Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.0-alpha.0.3928+-dirty", GitCommit:"", GitTreeState:"dirty", BuildDate:"2017-08-18T01:09:23Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} /sig cli
/assign
GitHub didn't allow me to assign the following users: zjj2wry. Note that only can be assigned. <detailsIn response to : /assign Instructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
thank for you report this

Discussion:
persistentVolumeClaimColumnDefinitions := []metav1alpha1.TableColumnDefinition{ {Name: "Name", Type: "string", Format: "name", Description: metav1.ObjectMeta{}.SwaggerDoc()["name"]}, {Name: "Status", Type: "string", Description: apiv1.PersistentVolumeClaimStatus{}.SwaggerDoc()["phase"]}, <ins> {Name: "Volume", Type: "string", Description: apiv1.PersistentVolumeSpec{}.SwaggerDoc()["volumeName"]}, </ins> {Name: "Capacity", Type: "string", Description: apiv1.PersistentVolumeClaimStatus{}.SwaggerDoc()["capacity"]}, {Name: "Access Modes", Type: "string", Description: apiv1.PersistentVolumeClaimStatus{}.SwaggerDoc()["accessModes"]}, {Name: "StorageClass", Type: "string", Description: "StorageClass of the pvc"},

buf.Reset() } } <ins> func TestPrintPersistentVolumeClaim(t *testing.T) { myScn := "my-scn" tests := []struct { pvc    api.PersistentVolumeClaim expect string }{ { // Test name, num of containers, restarts, container ready status api.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: "test1", }, Spec: api.PersistentVolumeClaimSpec{ VolumeName: "my-volume", }, Status: api.PersistentVolumeClaimStatus{ Phase:       api.ClaimBound, AccessModes: []api.PersistentVolumeAccessMode{api.ReadOnlyMany}, Capacity: map[api.ResourceName]resource.Quantity{ api.ResourceStorage: resource.MustParse("4Gi"), }, }, }, "test1tBoundtmy-volumet4GitROXtt<unknown>n", }, { // Test name, num of containers, restarts, container ready status api.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: "test2", }, Spec: api.PersistentVolumeClaimSpec{}, Status: api.PersistentVolumeClaimStatus{ Phase:       api.ClaimLost, AccessModes: []api.PersistentVolumeAccessMode{api.ReadOnlyMany}, Capacity: map[api.ResourceName]resource.Quantity{ api.ResourceStorage: resource.MustParse("4Gi"), }, }, }, "test2tLostttttt<unknown>n", }, { // Test name, num of containers, restarts, container ready status api.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: "test3", }, Spec: api.PersistentVolumeClaimSpec{ VolumeName: "my-volume", }, Status: api.PersistentVolumeClaimStatus{ Phase:       api.ClaimPending, AccessModes: []api.PersistentVolumeAccessMode{api.ReadWriteMany}, Capacity: map[api.ResourceName]resource.Quantity{ api.ResourceStorage: resource.MustParse("10Gi"), }, }, }, "test3tPendingtmy-volumet10GitRWXtt<unknown>n", }, { // Test name, num of containers, restarts, container ready status api.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: "test4", }, Spec: api.PersistentVolumeClaimSpec{ VolumeName:       "my-volume", StorageClassName: &myScn, }, Status: api.PersistentVolumeClaimStatus{ Phase:       api.ClaimPending, AccessModes: []api.PersistentVolumeAccessMode{api.ReadWriteOnce}, Capacity: map[api.ResourceName]resource.Quantity{ api.ResourceStorage: resource.MustParse("10Gi"), }, }, }, "test4tPendingtmy-volumet10GitRWOtmy-scnt<unknown>n", }, } buf := bytes.NewBuffer([]byte{}) for _, test := range tests { table, err := printers.NewTablePrinter().With(AddHandlers).PrintTable(&test.pvc, printers.PrintOptions{}) if err != nil { t.Fatal(err) } if err := printers.PrintTable(table, buf, printers.PrintOptions{NoHeaders: true}); err != nil { t.Fatal(err) } if buf.String() != test.expect { fmt.Println(buf.String()) fmt.Println(test.expect) t.Fatalf("Expected: %s, but got: %s", test.expect, buf.String()) } buf.Reset() } } </ins>