Skip to content

Commit 6ff2330

Browse files
committed
fix(kubectl-trace): fix typo wether to whether
Signed-off-by: Lorenzo Fontana <[email protected]>
1 parent 3b9e9fe commit 6ff2330

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/cmd/run.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ func NewRunCommand(factory factory.Factory, streams genericclioptions.IOStreams)
120120
}
121121

122122
cmd.Flags().StringVarP(&o.container, "container", "c", o.container, "Specify the container")
123-
cmd.Flags().BoolVarP(&o.attach, "attach", "a", o.attach, "Wheter or not to attach to the trace program once it is created")
123+
cmd.Flags().BoolVarP(&o.attach, "attach", "a", o.attach, "Whether or not to attach to the trace program once it is created")
124124
cmd.Flags().StringVarP(&o.eval, "eval", "e", o.eval, "Literal string to be evaluated as a bpftrace program")
125125
cmd.Flags().StringVarP(&o.program, "filename", "f", o.program, "File containing a bpftrace program")
126126
cmd.Flags().StringVar(&o.serviceAccount, "serviceaccount", o.serviceAccount, "Service account to use to set in the pod spec of the kubectl-trace job")
127127
cmd.Flags().StringVar(&o.imageName, "imagename", o.imageName, "Custom image for the tracerunner")
128128
cmd.Flags().StringVar(&o.initImageName, "init-imagename", o.initImageName, "Custom image for the init container responsible to fetch and prepare linux headers")
129-
cmd.Flags().BoolVar(&o.fetchHeaders, "fetch-headers", o.fetchHeaders, "Wheter to fetch linux headers or not")
129+
cmd.Flags().BoolVar(&o.fetchHeaders, "fetch-headers", o.fetchHeaders, "Whether to fetch linux headers or not")
130130

131131
return cmd
132132
}

pkg/cmd/tracerunner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func NewTraceRunnerCommand() *cobra.Command {
5050
cmd.Flags().StringVarP(&o.podUID, "poduid", "p", o.podUID, "Specify the pod UID")
5151
cmd.Flags().StringVarP(&o.programPath, "program", "f", "program.bt", "Specify the bpftrace program path")
5252
cmd.Flags().StringVarP(&o.bpftraceBinaryPath, "bpftracebinary", "b", "/bin/bpftrace", "Specify the bpftrace binary path")
53-
cmd.Flags().BoolVar(&o.inPod, "inpod", false, "Wheter or not run this bpftrace in a pod's container process namespace")
53+
cmd.Flags().BoolVar(&o.inPod, "inpod", false, "Whether or not run this bpftrace in a pod's container process namespace")
5454
return cmd
5555
}
5656

0 commit comments

Comments
 (0)