kubernetes/pkg/volume/flexvolume
Claudiu Belu 38092cb458 unittests: Fixes unit tests for Windows (part 2)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- volume mounting is a bit different on Windows: Mount will create the
  parent dirs and mklink at the volume path later (otherwise mklink will
  raise an error).
- os.Chmod is not working as intended on Windows.
- path.Dir() will always return "." on Windows, and filepath.Dir()
  should be used instead (which works correctly).
- on Windows, you can't typically run binaries without extensions. If
  the file C:\\foo.bat exists, we can still run C:\\foo because Windows
  will append one of the supported file extensions ($env:PATHEXT) to it
  and run it.
- Windows file permissions do not work the same way as the Linux ones.
- /tmp directory being used, which might not exist on Windows. Instead,
  the OS-specific Temp directory should be used.

Fixes a few other issues:

- rbd.go: Return error in a case in which an error is encountered. This
  will prevent "rbd: failed to setup" and "rbd: successfully setup" log
  messages to be logged at the same time.
2022-08-01 18:56:32 +03:00
..
attacher-defaults.go Change code to use staging/k8s.io/mount-utils 2020-09-16 21:51:24 -07:00
attacher.go Pass FsGroup to MountDevice 2021-07-03 16:29:42 -07:00
attacher_test.go Pass FsGroup to MountDevice 2021-07-03 16:29:42 -07:00
common_test.go unittests: Fixes unit tests for Windows (part 2) 2022-08-01 18:56:32 +03:00
detacher-defaults.go Change code to use staging/k8s.io/mount-utils 2020-09-16 21:51:24 -07:00
detacher.go cleanup: fix log capitalization in volume package 2021-04-14 21:58:56 +08:00
detacher_test.go Introduce test harness into unit tests 2018-10-08 18:44:05 -04:00
driver-call.go simplify returning boolean expression in /pkg/volume 2021-05-25 02:39:55 +00:00
driver-call_test.go refactor(flexvolume): simplify capabilities handling 2017-08-24 22:18:58 +11:00
expander-defaults.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
expander.go Move resize function parameters to a new ResizeOptions type 2019-03-08 09:21:44 -05:00
fake_watcher.go fix golint issue for pkg/volume/flexvolume package 2018-09-20 17:33:45 +00:00
flexvolume_test.go unittests: Fixes unit tests for Windows (part 2) 2022-08-01 18:56:32 +03:00
mounter-defaults.go Merge pull request #104732 from mengjiao-liu/remove-flag-experimental-check-node-capabilities-before-mount 2022-02-24 07:56:30 -08:00
mounter.go kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount 2022-01-06 11:47:11 +08:00
mounter_test.go Change code to use staging/k8s.io/mount-utils 2020-09-16 21:51:24 -07:00
OWNERS Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00
plugin-defaults.go Fix log format in flexvolume 2021-04-13 21:42:07 +08:00
plugin.go Fix log format in flexvolume 2021-04-13 21:42:07 +08:00
plugin_test.go bump k8s.io/utils version 2019-12-21 14:54:44 +08:00
probe.go cleanup: fix log capitalization in volume package 2021-04-14 21:58:56 +08:00
probe_test.go unittests: Fixes unit tests for Windows (part 2) 2022-08-01 18:56:32 +03:00
unmounter-defaults.go Change code to use staging/k8s.io/mount-utils 2020-09-16 21:51:24 -07:00
unmounter.go cleanup: fix log capitalization in volume package 2021-04-14 21:58:56 +08:00
unmounter_test.go Change code to use staging/k8s.io/mount-utils 2020-09-16 21:51:24 -07:00
util.go cleanup: fix log capitalization in volume package 2021-04-14 21:58:56 +08:00
volume.go Change code to use staging/k8s.io/mount-utils 2020-09-16 21:51:24 -07:00