Skip to content

Commit

Permalink
Merge pull request dragonflyoss#494 from yawqi/master
Browse files Browse the repository at this point in the history
nydusify: bug fix, `check` subcommand uses direct mode
  • Loading branch information
jiangliu authored Jun 15, 2022
2 parents 4cc8fe1 + 3433c4c commit 3d3ac61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 2 additions & 8 deletions contrib/nydusify/pkg/checker/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type Opt struct {
BackendType string
BackendConfig string
ExpectedArch string
FsVersion string
}

// Checker validates Nydus image manifest, bootstrap and mounts filesystem
Expand Down Expand Up @@ -106,13 +105,8 @@ func (checker *Checker) Check(ctx context.Context) error {
return errors.Wrap(err, "output image information")
}

mode := "cached"
digestValidate := true
if checker.FsVersion == "6" {
mode = "direct"
digestValidate = false

}
mode := "direct"
digestValidate := false

rules := []rule.Rule{
&rule.ManifestRule{
Expand Down
1 change: 0 additions & 1 deletion contrib/nydusify/tests/nydusify.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ func (nydusify *Nydusify) Check(t *testing.T) {
BackendType: nydusify.backendType,
BackendConfig: nydusify.backendConfig,
ExpectedArch: "amd64",
FsVersion: nydusify.fsVersion,
})
assert.Nil(t, err)

Expand Down

0 comments on commit 3d3ac61

Please sign in to comment.