util: use k8s.io/mount-utils/NewWithoutSystemd() to prevent logging

NewWithoutSystemd() has been introduced in the k8s.io/mount-utils
package so that systemd is not called while executing functions. This
offers consumers the ability to prevent confusing and scary messages
from getting logged.

See-also: kubernetes/kubernetes#111218
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-07-18 15:08:42 +02:00 committed by mergify[bot]
parent 3a200b6976
commit 10b2277330

View File

@ -64,7 +64,7 @@ func NewDefaultNodeServer(d *CSIDriver, t string, topology map[string]string) *D
return &DefaultNodeServer{
Driver: d,
Type: t,
Mounter: mount.New(""),
Mounter: mount.NewWithoutSystemd(""),
}
}