Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Include storage class details in cli acorn volumes (#1229) #1241

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/cli/testdata/all/all_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nil> 292y ago
NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED
found.volume found found.volume <nil> 292y ago

SECRETS:
ALIAS NAME TYPE KEYS CREATED
Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/testdata/all/all_test_i.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nil> 292y ago
NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED
found.volume found found.volume <nil> 292y ago

SECRETS:
ALIAS NAME TYPE KEYS CREATED
Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nil> 292y ago\n",
wantOut: "NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED\nfound.volume found found.volume <nil> 292y ago\n",
},
{
name: "acorn volume -o json", fields: fields{
Expand Down Expand Up @@ -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 <nil> 292y ago\n",
wantOut: "NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED\nfound.volume found found.volume <nil> 292y ago\n",
},
{
name: "acorn volume dne", fields: fields{
Expand Down
1 change: 1 addition & 0 deletions pkg/tables/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"},
Expand Down