kubernetes/pkg/volume/csi
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
..
fake Pass FsGroup to NodeStageVolume 2021-07-03 16:29:42 -07:00
nodeinfomanager Merge pull request #105127 from astraw99/fix-dup-kubeClient 2021-12-07 17:25:30 -08:00
testing hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
csi_attacher_test.go unittests: Fixes unit tests for Windows (part 2) 2022-08-01 18:56:32 +03:00
csi_attacher.go csi_attacher: improve attach/detach timeout message 2022-03-14 11:00:22 +01:00
csi_block_test.go fix static check of importing the same package multiple times 2021-12-14 11:06:44 +05:30
csi_block.go Pass FsGroup to NodeStageVolume 2021-07-03 16:29:42 -07:00
csi_client_test.go Moved VOLUME_MOUNT_GROUP capability check from NodeStageVolume to MountDevice; added log message in SetupAt to indicate FSGroup is delegated to driver 2021-07-03 16:29:42 -07:00
csi_client.go grpc: move to use grpc.WithTransportCredentials() 2022-05-30 21:41:47 +03:00
csi_drivers_store_test.go Implement DriversStore as a struct 2019-01-25 12:23:15 +00:00
csi_drivers_store.go Implement DriversStore as a struct 2019-01-25 12:23:15 +00:00
csi_metrics_test.go Add csi_operations_seconds metrics on kubelet 2021-02-17 13:38:27 -08:00
csi_metrics.go add volume type and seperated histogram for volume stat collection 2022-01-19 22:33:37 +08:00
csi_mounter_test.go unittests: Fixes unit tests for Windows (part 2) 2022-08-01 18:56:32 +03:00
csi_mounter.go Generate and format files 2022-07-26 13:14:05 -04:00
csi_plugin_test.go remove feature gate GA for 1.25 2022-05-12 14:15:23 +08:00
csi_plugin.go Generate and format files 2022-07-26 13:14:05 -04:00
csi_test.go kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount 2022-01-06 11:47:11 +08:00
csi_util_test.go unittests: Fixes unit tests for Windows (part 2) 2022-08-01 18:56:32 +03:00
csi_util.go chore: make csi getPodInfoAttrs func private 2021-04-15 20:51:51 +08:00
expander_test.go fix: add unit test 2022-04-05 11:35:14 +08:00
expander.go csi: add nodeExpandSecret support for CSI client 2022-04-05 11:36:23 +08:00