ceph-csi/internal/util
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
..
k8s rbd: create token and use it for vault SA 2022-06-17 11:37:59 +00:00
log cleanup: use os.ReadFile to read file 2022-01-24 05:25:11 +00:00
reftracker util: added reference tracker 2022-03-27 19:24:26 +00:00
cephcmds_test.go util: add helper ExecCommandWithTimeout function 2021-12-23 13:36:21 +00:00
cephcmds.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
cephconf.go cleanup: remove ceph.conf WA options which are already fixed 2022-02-04 15:42:32 +00:00
cluster_mapping_test.go cleanup: use os.WriteFile to write files 2022-01-24 05:25:11 +00:00
cluster_mapping.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
conn_pool_test.go cleanup: use os.WriteFile to write files 2022-01-24 05:25:11 +00:00
conn_pool.go cleanup: use os.ReadFile to read file 2022-01-24 05:25:11 +00:00
connection.go nfs: use go-ceph API for creating/deleting exports 2022-04-14 08:01:45 +00:00
credentials_test.go rbd: add migration secret support to controllerserver functions 2021-12-20 07:34:43 +00:00
credentials.go cleanup: use WriteString instead of Write 2022-01-24 05:25:11 +00:00
crypto_test.go cleanup: move KMS functionality into its own package 2021-08-30 16:31:40 +00:00
crypto.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
cryptsetup.go rbd: log stdError for cryptosetup command 2021-11-18 02:17:15 +00:00
csiconfig_test.go cephfs: add netNamespaceFilePath for CephFS 2022-04-19 12:28:46 +00:00
csiconfig.go cephfs: add netNamespaceFilePath for CephFS 2022-04-19 12:28:46 +00:00
errors_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
errors.go cleanup: rename errorPair to pairError 2022-01-24 05:25:11 +00:00
httpserver.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
idlocker_test.go util: remove deleteLock test as it is enforced by the controller 2021-07-22 15:07:49 +00:00
idlocker.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
pidlimit_test.go cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
pidlimit.go util: support systems using the new cgroup v2 structure 2022-05-07 20:38:48 +00:00
stripsecrets.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
topology_test.go rbd: fix topology snapshot pool 2022-03-30 04:40:30 +00:00
topology.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
util_test.go cephfs: round to cephfs size to multiple of 4Mib 2022-07-13 18:32:40 +00:00
util.go cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00
validate.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
volid_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
volid.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00