mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
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:
parent
3a200b6976
commit
10b2277330
@ -64,7 +64,7 @@ func NewDefaultNodeServer(d *CSIDriver, t string, topology map[string]string) *D
|
|||||||
return &DefaultNodeServer{
|
return &DefaultNodeServer{
|
||||||
Driver: d,
|
Driver: d,
|
||||||
Type: t,
|
Type: t,
|
||||||
Mounter: mount.New(""),
|
Mounter: mount.NewWithoutSystemd(""),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user