Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tool/tsh/tsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,18 +885,18 @@ func Run(ctx context.Context, args []string, opts ...cliOption) error {
bench.Flag("ticks", "Ticks per half distance").Default("100").Int32Var(&cf.BenchTicks)
bench.Flag("scale", "Value scale in which to scale the recorded values").Default("1.0").Float64Var(&cf.BenchValueScale)

benchSSH := bench.Command("ssh", "Run SSH benchmark test")
benchSSH := bench.Command("ssh", "Run SSH benchmark test").Hidden()
benchSSH.Arg("[user@]host", "Remote hostname and the login to use").Required().StringVar(&cf.UserHost)
benchSSH.Arg("command", "Command to execute on a remote host").Required().StringsVar(&cf.RemoteCommand)
benchSSH.Flag("port", "SSH port on a remote host").Short('p').Int32Var(&cf.NodePort)
benchSSH.Flag("interactive", "Create interactive SSH session").BoolVar(&cf.BenchInteractive)
benchSSH.Flag("random", "Connect to random hosts for each SSH session. The provided hostname must be all: tsh bench ssh --random <user>@all <command>").BoolVar(&cf.BenchRandom)
var benchKubeOpts benchKubeOptions
benchKube := bench.Command("kube", "Run Kube benchmark test")
benchKube := bench.Command("kube", "Run Kube benchmark test").Hidden()
benchKube.Flag("kube-namespace", "Selects the ").Default("default").StringVar(&benchKubeOpts.namespace)
benchListKube := benchKube.Command("ls", "Run a benchmark test to list Pods")
benchListKube := benchKube.Command("ls", "Run a benchmark test to list Pods").Hidden()
benchListKube.Arg("kube_cluster", "Kubernetes cluster to use").Required().StringVar(&cf.KubernetesCluster)
benchExecKube := benchKube.Command("exec", "Run a benchmark test to exec into the specified Pod")
benchExecKube := benchKube.Command("exec", "Run a benchmark test to exec into the specified Pod").Hidden()
benchExecKube.Arg("kube_cluster", "Kubernetes cluster to use").Required().StringVar(&cf.KubernetesCluster)
benchExecKube.Arg("pod", "Pod name to exec into").Required().StringVar(&benchKubeOpts.pod)
benchExecKube.Arg("command", "Command to execute on a pod").Required().StringsVar(&cf.RemoteCommand)
Expand Down