File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ var deleteCmd = &cobra.Command{
13
13
Use : "delete TRACEID" ,
14
14
Short : "Delete a trace execution from your system" ,
15
15
Long : `Delete all the running pods that are collecting your trace data using bpftrace for a given TRACEID
16
+
17
+ Example:
18
+ # Delete a specific trace
19
+ kubectl trace delete 656ee75a-ee3c-11e8-9e7a-8c164500a77e
20
+
21
+ Limitations:
22
+ This command does not implement yet a way to bulk delete traces.
16
23
` ,
17
24
Run : delete ,
18
25
}
@@ -21,10 +28,11 @@ func delete(cmd *cobra.Command, args []string) {
21
28
log , _ := zap .NewProduction ()
22
29
defer log .Sync ()
23
30
24
- uuid := args [0 ]
25
31
if len (args ) == 0 {
26
32
log .Fatal ("TRACEID not provided" )
27
33
}
34
+ uuid := args [0 ]
35
+
28
36
kubeconfig := viper .GetString ("kubeconfig" )
29
37
config , err := clientcmd .BuildConfigFromFlags ("" , kubeconfig )
30
38
You can’t perform that action at this time.
0 commit comments