sandbox: add a sandboxService interface to criService
so that we can add a fakeSandboxService to the criService in tests. Signed-off-by: Abel Feng <fshb1988@gmail.com>
This commit is contained in:
@@ -239,7 +239,7 @@ func WithInMemoryServices(ic *plugin.InitContext) Opt {
|
||||
}
|
||||
}
|
||||
|
||||
func WithSandboxers(ic *plugin.InitContext) Opt {
|
||||
func WithInMemorySandboxControllers(ic *plugin.InitContext) Opt {
|
||||
return func(c *clientOpts) error {
|
||||
sandboxers, err := ic.GetByType(plugins.SandboxControllerPlugin)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user