diff --git a/pkg/csi/pvc_inspector.go b/pkg/csi/pvc_inspector.go index 89cad2a..7ef5be7 100644 --- a/pkg/csi/pvc_inspector.go +++ b/pkg/csi/pvc_inspector.go @@ -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) } diff --git a/pkg/csi/snapshot_inspector.go b/pkg/csi/snapshot_inspector.go index 3d3bef9..99efd8e 100644 --- a/pkg/csi/snapshot_inspector.go +++ b/pkg/csi/snapshot_inspector.go @@ -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) }