Skip to content

Commit 3629fb6

Browse files
authored
Indicate Deleting status if deletion timestamp is set for volume (#991)
Signed-off-by: Bala.FA <bala@minio.io>
1 parent 3947758 commit 3629fb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/kubectl-directpv/list_volumes.go

Lines changed: 4 additions & 0 deletions
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)