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
-
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")
123
+
cmd.Flags().BoolVarP(&o.attach, "attach", "a", o.attach, "Whether or not to attach to the trace program once it is created")
124
+
cmd.Flags().StringVarP(&o.eval, "eval", "e", o.eval, "Literal string to be evaluated as a bpftrace program")
125
+
cmd.Flags().StringVarP(&o.program, "filename", "f", o.program, "File containing a bpftrace program")
126
+
cmd.Flags().StringVar(&o.serviceAccount, "serviceaccount", o.serviceAccount, "Service account to use to set in the pod spec of the kubectl-trace job")
127
+
cmd.Flags().StringVar(&o.imageName, "imagename", o.imageName, "Custom image for the tracerunner")
128
+
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, "Whether to fetch linux headers or not")
108
130
109
131
returncmd
110
132
}
@@ -276,6 +298,10 @@ func (o *RunOptions) Run() error {
276
298
PodUID: o.podUID,
277
299
ContainerName: o.container,
278
300
IsPod: o.isPod,
301
+
// todo(dalehamel) > following fields to be used for #48
0 commit comments