ceph-csi/internal
Niels de Vos 011d4fc81c cleanup: create k8s.io/mount-utils Mounter only once
Recently the k8s.io/mount-utils package added more runtime dectection.
When creating a new Mounter, the detect is run every time. This is
unfortunate, as it logs a message like the following:

```
mount_linux.go:283] Detected umount with safe 'not mounted' behavior
```

This message might be useful, so it probably good to keep it.

In Ceph-CSI there are various locations where Mounter instances are
created. Moving that to the DefaultNodeServer type reduces it to a
single place. Some utility functions need to accept the additional
parameter too, so that has been modified as well.

See-also: kubernetes/kubernetes#109676
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2022-07-21 07:14:43 +00:00
..
cephfs cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00
controller cleanup: ReconcilePersistentVolume consider passing it by pointer 2022-06-28 19:12:53 +00:00
csi-addons ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
csi-common cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00
journal cephfs: added support for snapshot-backed volumes 2022-06-16 09:44:27 +00:00
kms rbd: create token and use it for vault SA 2022-06-17 11:37:59 +00:00
liveness cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
nfs ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
rbd cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00
util cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00