Skip to content

Commit 7607265

Browse files
authored
Indicate Deleting status if deletion timestamp is set for volume (#992)
Signed-off-by: Bala.FA <[email protected]>
1 parent 95e7151 commit 7607265

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/kubectl-directpv/list_volumes.go

+4
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ func listVolumesMain(ctx context.Context) {
246246
status += ",Suspended"
247247
}
248248

249+
if volume.DeletionTimestamp != nil {
250+
status += ",Deleting"
251+
}
252+
249253
row := []interface{}{
250254
volume.Name,
251255
printableBytes(volume.Status.TotalCapacity),

0 commit comments

Comments
 (0)