Skip to content

Commit

Permalink
use it in windows host process
Browse files Browse the repository at this point in the history
  • Loading branch information
umagnus authored and k8s-infra-cherrypick-robot committed Nov 12, 2024
1 parent 2e8cd4a commit 4ac69ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/mounter/safe_mounter_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,8 @@ func newCSIProxyMounter() (*csiProxyMounter, error) {
func NewSafeMounter(enableWindowsHostProcess, useCSIProxyGAInterface bool, maxConcurrentFormat int, concurrentFormatTimeout time.Duration) (*mount.SafeFormatAndMount, error) {
if enableWindowsHostProcess {
klog.V(2).Infof("using windows host process mounter")
return &mount.SafeFormatAndMount{
Interface: NewWinMounter(),
Exec: utilexec.New(),
}, nil
opt := mount.WithMaxConcurrentFormat(maxConcurrentFormat, concurrentFormatTimeout)
return mount.NewSafeFormatAndMount(NewWinMounter(), utilexec.New(), opt), nil
} else {
if useCSIProxyGAInterface {
csiProxyMounter, err := newCSIProxyMounter()
Expand Down

0 comments on commit 4ac69ae

Please sign in to comment.