From 10b2277330d26a3aac9e673923c66b4af86a5ba5 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 18 Jul 2022 15:08:42 +0200 Subject: [PATCH] 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 --- internal/csi-common/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/csi-common/utils.go b/internal/csi-common/utils.go index e4f5c5933..c7a8366b5 100644 --- a/internal/csi-common/utils.go +++ b/internal/csi-common/utils.go @@ -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(""), } }