kubernetes/pkg/volume
Stephen Kitt ab75e48494
storage: stop using deprecated io/ioutil
This replaces deprecated ioutil variables and functions as follows:

* ioutil.ReadDir -> os.ReadDir
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempDir -> os.MkdirTemp
* ioutil.TempFile -> os.CreateTemp
* ioutil.WriteFile -> os.WriteFile

The ReadDir conversion involves an API change, the replacement
function returns a slice of fs.DirEntry instead of fs.FileInfo.
Where appropriate, the surrounding code has been adjusted; mostly,
that means using DirEntry.Type() instead of FileInfo.Mode().
Applying this change to the IoUtil interface would mean changing its
API, so this is left for later.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-06-20 16:49:03 +02:00
..
azure_file Revert "removed the deprecated azureFile in-tree storage plugin" 2023-06-02 10:20:53 +08:00
cephfs Set permissions on volume before publishing update 2022-12-24 07:59:41 +02:00
configmap Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
csi storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
csimigration Revert "removed the deprecated azureFile in-tree storage plugin" 2023-06-02 10:20:53 +08:00
downwardapi Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
emptydir Merge pull request #117077 from pacoxu/fsquota-cleanup 2023-04-18 02:36:57 -07:00
fc Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
flexvolume Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
gcepd Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
git_repo Fix the git-repo test error caused by the correct use of loop variables 2023-05-26 21:32:36 +08:00
hostpath volume: use contextual logging 2023-03-14 08:37:30 +08:00
iscsi Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
local Merge pull request #114764 from claudiubelu/unittests-7 2023-05-08 11:52:51 -07:00
nfs Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
portworx Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
projected storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
rbd Merge pull request #114764 from claudiubelu/unittests-7 2023-05-08 11:52:51 -07:00
secret Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
testing remove helper function for unused storage feature in pkg/proxy/util 2023-06-13 09:22:59 +08:00
util storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
validation various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
vsphere_volume Merge pull request #114764 from claudiubelu/unittests-7 2023-05-08 11:52:51 -07:00
doc.go
metrics_block_linux_test.go unit tests: Skip Windows-unrelated tests on Windows 2022-10-18 12:43:07 +03:00
metrics_block.go add volume type and seperated histogram for volume stat collection 2022-01-19 22:33:37 +08:00
metrics_cached.go various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
metrics_du_test.go storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
metrics_du_unix_test.go tests: Ports volume unit tests to Windows (part 2) 2023-01-01 00:18:31 +00:00
metrics_du_windows_test.go tests: Ports volume unit tests to Windows (part 2) 2023-01-01 00:18:31 +00:00
metrics_du.go set metric_source to du or fsquota accordingly 2022-01-20 10:56:02 +08:00
metrics_errors.go Add helper functions for Block volume Capacity detection 2021-05-20 16:37:12 +02:00
metrics_nil_test.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
metrics_nil.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
metrics_statfs_test.go
metrics_statfs.go add volume type and seperated histogram for volume stat collection 2022-01-19 22:33:37 +08:00
noop_expandable_plugin.go Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
plugins_test.go Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
plugins.go remove helper function for unused storage feature in pkg/proxy/util 2023-06-13 09:22:59 +08:00
volume_linux_test.go Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
volume_linux.go Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
volume_unsupported.go Fix directory mismatch for volume.SetVolumeOwnership() 2023-04-03 12:34:37 -07:00
volume.go grammar: replace all occurrences of "the the" with "the" 2022-10-14 09:03:14 +02:00