You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd.Flags().StringVarP(&o.container, "container", "c", o.container, "Specify the container")
104
119
cmd.Flags().BoolVarP(&o.attach, "attach", "a", o.attach, "Wheter or not to attach to the trace program once it is created")
105
-
cmd.Flags().StringVarP(&o.eval, "eval", "e", "", "Literal string to be evaluated as a bpftrace program")
106
-
cmd.Flags().StringVarP(&o.program, "filename", "f", "", "File containing a bpftrace program")
107
-
cmd.Flags().StringVar(&o.serviceAccount, "serviceaccount", "default", "Service account to use to set in the pod spec of the kubectl-trace job")
120
+
cmd.Flags().StringVarP(&o.eval, "eval", "e", o.eval, "Literal string to be evaluated as a bpftrace program")
121
+
cmd.Flags().StringVarP(&o.program, "filename", "f", o.program, "File containing a bpftrace program")
122
+
cmd.Flags().StringVar(&o.serviceAccount, "serviceaccount", o.serviceAccount, "Service account to use to set in the pod spec of the kubectl-trace job")
123
+
cmd.Flags().StringVar(&o.imageName, "imagename", o.imageName, "Custom image for the tracerunner")
124
+
cmd.Flags().StringVar(&o.initImageName, "init-imagename", o.initImageName, "Custom image for the init container responsible to fetch and prepare linux headers")
125
+
cmd.Flags().BoolVar(&o.fetchHeaders, "fetch-headers", o.fetchHeaders, "Wheter to fetch linux headers or not")
108
126
109
127
returncmd
110
128
}
@@ -276,6 +294,10 @@ func (o *RunOptions) Run() error {
276
294
PodUID: o.podUID,
277
295
ContainerName: o.container,
278
296
IsPod: o.isPod,
297
+
// todo(dalehamel) > following fields to be used for #48
0 commit comments