Skip to content

Commit

Permalink
Indicate suspended volumes in 'kubectl directpv list volumes' command (
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveenrajmani committed Aug 22, 2023
1 parent fdc576d commit af4d4b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/kubectl-directpv/list_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ func listVolumesMain(ctx context.Context) {
status = "Bounded"
}

if volume.IsSuspended() {
status += ",Suspended"
}

row := []interface{}{
volume.Name,
printableBytes(volume.Status.TotalCapacity),
Expand Down

0 comments on commit af4d4b7

Please sign in to comment.