File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,11 @@ func main() {
145145 Name : "metrics,m" ,
146146 Usage : "address to serve the metrics API" ,
147147 },
148+ cli.StringFlag {
149+ Name : "runtime" ,
150+ Usage : "set the runtime to stress test" ,
151+ Value : "io.containerd.runtime.v1.linux" ,
152+ },
148153 }
149154 app .Before = func (context * cli.Context ) error {
150155 if context .GlobalBool ("json" ) {
@@ -166,6 +171,7 @@ func main() {
166171 Exec : context .GlobalBool ("exec" ),
167172 JSON : context .GlobalBool ("json" ),
168173 Metrics : context .GlobalString ("metrics" ),
174+ Runtime : context .GlobalString ("runtime" ),
169175 }
170176 if config .Metrics != "" {
171177 return serve (config )
@@ -185,10 +191,11 @@ type config struct {
185191 Exec bool
186192 JSON bool
187193 Metrics string
194+ Runtime string
188195}
189196
190197func (c config ) newClient () (* containerd.Client , error ) {
191- return containerd .New (c .Address )
198+ return containerd .New (c .Address , containerd . WithDefaultRuntime ( c . Runtime ) )
192199}
193200
194201func serve (c config ) error {
You can’t perform that action at this time.
0 commit comments