diff --git a/pkg/cli/testdata/all/all_test.txt b/pkg/cli/testdata/all/all_test.txt index 81a7af8cc..9017edba7 100644 --- a/pkg/cli/testdata/all/all_test.txt +++ b/pkg/cli/testdata/all/all_test.txt @@ -8,8 +8,8 @@ NAME APP IMAGE STATE RESTARTCOUNT CREATED MESSAG found.container 0 292y ago VOLUMES: -NAME APP-NAME BOUND-VOLUME CAPACITY STATUS ACCESS-MODES CREATED -found.volume found found.volume 292y ago +NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED +found.volume found found.volume 292y ago SECRETS: ALIAS NAME TYPE KEYS CREATED diff --git a/pkg/cli/testdata/all/all_test_i.txt b/pkg/cli/testdata/all/all_test_i.txt index 10cd29fed..04d4ac4ee 100644 --- a/pkg/cli/testdata/all/all_test_i.txt +++ b/pkg/cli/testdata/all/all_test_i.txt @@ -8,8 +8,8 @@ NAME APP IMAGE STATE RESTARTCOUNT CREATED MESSAG found.container 0 292y ago VOLUMES: -NAME APP-NAME BOUND-VOLUME CAPACITY STATUS ACCESS-MODES CREATED -found.volume found found.volume 292y ago +NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED +found.volume found found.volume 292y ago SECRETS: ALIAS NAME TYPE KEYS CREATED diff --git a/pkg/cli/volumes_test.go b/pkg/cli/volumes_test.go index d1923f4d6..2eb0c10e7 100644 --- a/pkg/cli/volumes_test.go +++ b/pkg/cli/volumes_test.go @@ -48,7 +48,7 @@ func TestVolume(t *testing.T) { client: &testdata.MockClient{}, }, wantErr: false, - wantOut: "NAME APP-NAME BOUND-VOLUME CAPACITY STATUS ACCESS-MODES CREATED\nfound.volume found found.volume 292y ago\n", + wantOut: "NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED\nfound.volume found found.volume 292y ago\n", }, { name: "acorn volume -o json", fields: fields{ @@ -105,7 +105,7 @@ func TestVolume(t *testing.T) { client: &testdata.MockClient{}, }, wantErr: false, - wantOut: "NAME APP-NAME BOUND-VOLUME CAPACITY STATUS ACCESS-MODES CREATED\nfound.volume found found.volume 292y ago\n", + wantOut: "NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED\nfound.volume found found.volume 292y ago\n", }, { name: "acorn volume dne", fields: fields{ diff --git a/pkg/tables/tables.go b/pkg/tables/tables.go index 772bcc1b8..711da72d9 100644 --- a/pkg/tables/tables.go +++ b/pkg/tables/tables.go @@ -23,6 +23,7 @@ var ( {"App-Name", "Status.AppName"}, {"Bound-Volume", "Status.VolumeName"}, {"Capacity", "Spec.Capacity"}, + {"Volume-Class", "Spec.Class"}, {"Status", "Status.Status"}, {"Access-Modes", "Status.Columns.AccessModes"}, {"Created", "{{ago .CreationTimestamp}}"},