Skip to content

Commit

Permalink
Merge pull request #991 from huww98/k8s-utils-mount
Browse files Browse the repository at this point in the history
remove deprecated k8s.io/utils/mount
  • Loading branch information
k8s-ci-robot authored Mar 6, 2024
2 parents 6479e99 + 6b6a0e7 commit 1dd6eef
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 1,944 deletions.
2 changes: 1 addition & 1 deletion pkg/dbfs/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"google.golang.org/grpc/status"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
k8smount "k8s.io/utils/mount"
k8smount "k8s.io/mount-utils"
)

type nodeServer struct {
Expand Down
10 changes: 3 additions & 7 deletions pkg/utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import (
"k8s.io/client-go/tools/record"
k8smount "k8s.io/mount-utils"
utilexec "k8s.io/utils/exec"
"k8s.io/utils/mount"
)

const (
Expand Down Expand Up @@ -164,15 +163,12 @@ func ValidateRun(cmd string) (string, error) {
return "", err
}
}
safeMount := mount.SafeFormatAndMount{
Interface: mount.New(""),
Exec: utilexec.New(),
}
exec := utilexec.New()
var command utilexec.Cmd
if withArgs {
command = safeMount.Exec.Command(name, args...)
command = exec.Command(name, args...)
} else {
command = safeMount.Exec.Command(name)
command = exec.Command(name)
}

stdout, err := command.CombinedOutput()
Expand Down
15 changes: 0 additions & 15 deletions vendor/k8s.io/utils/mount/OWNERS

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/k8s.io/utils/mount/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions vendor/k8s.io/utils/mount/doc.go

This file was deleted.

216 changes: 0 additions & 216 deletions vendor/k8s.io/utils/mount/fake_mounter.go

This file was deleted.

Loading

0 comments on commit 1dd6eef

Please sign in to comment.