mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 06:27:39 +00:00
virtcontainers: Remove NewStoreFeature
remove NewStoreFeature Fixes: #2296 Signed-off-by: Binbin Zhang <binbin36520@gmail.com>
This commit is contained in:
parent
716ab32acf
commit
e2a9e78c9e
@ -9,7 +9,6 @@ package persist
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
exp "github.com/kata-containers/kata-containers/src/runtime/virtcontainers/experimental"
|
||||
persistapi "github.com/kata-containers/kata-containers/src/runtime/virtcontainers/persist/api"
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/persist/fs"
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/rootless"
|
||||
@ -23,12 +22,6 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
// NewStoreFeature is an experimental feature
|
||||
NewStoreFeature = exp.Feature{
|
||||
Name: "newstore",
|
||||
Description: "This is a new storage driver which reorganized disk data structures, it has to be an experimental feature since it breaks backward compatibility.",
|
||||
ExpRelease: "2.0",
|
||||
}
|
||||
expErr error
|
||||
supportedDrivers = map[string]initFunc{
|
||||
|
||||
@ -38,10 +31,6 @@ var (
|
||||
mockTesting = false
|
||||
)
|
||||
|
||||
func init() {
|
||||
expErr = exp.Register(NewStoreFeature)
|
||||
}
|
||||
|
||||
func EnableMockTesting() {
|
||||
mockTesting = true
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/device/manager"
|
||||
exp "github.com/kata-containers/kata-containers/src/runtime/virtcontainers/experimental"
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/persist"
|
||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/types"
|
||||
)
|
||||
@ -22,8 +21,7 @@ func TestSandboxRestore(t *testing.T) {
|
||||
var err error
|
||||
assert := assert.New(t)
|
||||
sconfig := SandboxConfig{
|
||||
ID: "test-exp",
|
||||
Experimental: []exp.Feature{persist.NewStoreFeature},
|
||||
ID: "test-exp",
|
||||
}
|
||||
container := make(map[string]*Container)
|
||||
container["test-exp"] = &Container{}
|
||||
|
Loading…
Reference in New Issue
Block a user