mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-03 18:04:16 +00:00
Merge pull request #6408 from jongwu/nydus_rm_hybrid
nydus: upgrad to v2.2.0
This commit is contained in:
@@ -157,7 +157,7 @@ func (nd *nydusd) args() ([]string, error) {
|
|||||||
logLevel = "debug"
|
logLevel = "debug"
|
||||||
}
|
}
|
||||||
args := []string{
|
args := []string{
|
||||||
"virtiofs", "--hybrid-mode",
|
"virtiofs",
|
||||||
"--log-level", logLevel,
|
"--log-level", logLevel,
|
||||||
"--apisock", nd.apiSockPath,
|
"--apisock", nd.apiSockPath,
|
||||||
"--sock", nd.sockPath,
|
"--sock", nd.sockPath,
|
||||||
|
@@ -99,13 +99,13 @@ func TestNydusdArgs(t *testing.T) {
|
|||||||
apiSockPath: "/var/lib/api.sock",
|
apiSockPath: "/var/lib/api.sock",
|
||||||
debug: true,
|
debug: true,
|
||||||
}
|
}
|
||||||
expected := "virtiofs --hybrid-mode --log-level debug --apisock /var/lib/api.sock --sock /var/lib/vhost-user.sock"
|
expected := "virtiofs --log-level debug --apisock /var/lib/api.sock --sock /var/lib/vhost-user.sock"
|
||||||
args, err := nd.args()
|
args, err := nd.args()
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
assert.Equal(expected, strings.Join(args, " "))
|
assert.Equal(expected, strings.Join(args, " "))
|
||||||
|
|
||||||
nd.debug = false
|
nd.debug = false
|
||||||
expected = "virtiofs --hybrid-mode --log-level info --apisock /var/lib/api.sock --sock /var/lib/vhost-user.sock"
|
expected = "virtiofs --log-level info --apisock /var/lib/api.sock --sock /var/lib/vhost-user.sock"
|
||||||
args, err = nd.args()
|
args, err = nd.args()
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
assert.Equal(expected, strings.Join(args, " "))
|
assert.Equal(expected, strings.Join(args, " "))
|
||||||
|
@@ -254,7 +254,7 @@ externals:
|
|||||||
nydus:
|
nydus:
|
||||||
description: "Nydus image acceleration service"
|
description: "Nydus image acceleration service"
|
||||||
url: "https://github.com/dragonflyoss/image-service"
|
url: "https://github.com/dragonflyoss/image-service"
|
||||||
version: "v2.1.1"
|
version: "v2.2.0"
|
||||||
|
|
||||||
nydus-snapshotter:
|
nydus-snapshotter:
|
||||||
description: "Snapshotter for Nydus image acceleration service"
|
description: "Snapshotter for Nydus image acceleration service"
|
||||||
|
Reference in New Issue
Block a user