ceph-csi/internal/csi-common
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
..
controllerserver-default.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
driver.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
identityserver-default.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
nodeserver-default.go cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00
server.go cleanup: refactor gRPC middleware into NewMiddlewareServerOption 2021-12-23 17:43:23 +00:00
utils_test.go cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00
utils.go cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00