Skip to content

Commit

Permalink
Adding --show-tree flag for browse snapshot & browse pvc commands
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokc9 committed Jul 31, 2024
1 parent dc4a65e commit 2d419ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/csi/pvc_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func (r *PVCBrowseRunner) RunPVCBrowse(ctx context.Context, args *types.PVCBrows
dynCli: r.DynCli,
},
}
if args.ShowTree {
fmt.Println("Show Tree works for PVC!")
return nil
}
return r.RunPVCBrowseHelper(ctx, args)
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/csi/snapshot_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ func (r *SnapshotBrowseRunner) RunSnapshotBrowse(ctx context.Context, args *type
dynCli: r.DynCli,
},
}
if args.ShowTree {
fmt.Println("Show Tree works for VS!")
return nil
}
return r.RunSnapshotBrowseHelper(ctx, args)
}

Expand Down

0 comments on commit 2d419ec

Please sign in to comment.