kubernetes/pkg/volume
hongkang 6910bc7bb0 Fix VolumeAttachment cleanup when AttachRequired changes
When CSI's AttachRequired changes from true to false after a successful
volume attach, MarkVolumeAsAttached fails because it attempts to look up
the plugin by spec, which fails verification.
This patch passes the VolumeName directly to MarkVolumeAsAttached.
This allows the function to skip the plugin lookup and correctly mark
the volume as attached in the Actual State of World, ensuring
VolumeAttachment cleanup can proceed.

Signed-off-by: hongkang <mzhkcj50@gmail.com>
2025-12-19 15:51:45 +08:00
..
configmap Remove pluginName param from GetMounter and GetExec 2025-06-12 17:29:17 +08:00
csi Merge pull request #134441 from humblec/kubelet-volume 2025-12-17 16:26:18 -08:00
csimigration Fix CSI migration UTs 2025-01-16 06:13:49 +00:00
downwardapi Monitor progress tracking for permission change 2025-02-24 15:55:37 -05:00
emptydir build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
fc build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
flexvolume Reject pod when attachment limit is exceeded (#132933) 2025-07-24 17:58:54 -07:00
git_repo KEP-5040: Disable git_repo volume driver. 2025-03-14 19:29:03 +00:00
hostpath Move kubelet config code to kubeletconfig 2025-08-06 12:08:19 -07:00
image Merge pull request #126777 from carlory/fix-image-plugin 2025-01-20 08:46:36 -08:00
iscsi build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
local build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
nfs Remove pluginName param from GetMounter and GetExec 2025-06-12 17:29:17 +08:00
portworx Clean up event messages for errors in Portworx in-tree driver 2025-11-03 22:38:58 +00:00
projected Pod Certificates: Basic implementation 2025-07-21 21:49:57 +00:00
secret Remove pluginName param from GetMounter and GetExec 2025-06-12 17:29:17 +08:00
testing Fix error messages in volume path handler 2025-09-25 22:37:03 +05:30
util Fix VolumeAttachment cleanup when AttachRequired changes 2025-12-19 15:51:45 +08:00
validation various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
metrics_block.go Fix: typos for volume package 2024-11-29 17:11:00 +08:00
metrics_block_linux_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
metrics_cached.go various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
metrics_du.go set metric_source to du or fsquota accordingly 2022-01-20 10:56:02 +08:00
metrics_du_test.go storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
metrics_du_unix_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
metrics_du_windows_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
metrics_errors.go Fix: typos for volume package 2024-11-29 17:11:00 +08:00
metrics_nil.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
metrics_nil_test.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
metrics_statfs.go Fix: typos for volume package 2024-11-29 17:11:00 +08:00
metrics_statfs_test.go add volume timestamps 2017-03-02 15:01:59 -08:00
noop_expandable_plugin.go remove volumeoptions from VolumePlugin and BlockVolumePlugin 2024-07-24 14:07:02 +08:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
plugins.go update debian-base and setcap 2025-10-15 09:42:15 +02:00
plugins_test.go refresh probed plugins on init to avoid probe race/erroneous unmounts 2024-11-02 14:44:48 -04:00
volume.go correct metrics function comments 2025-10-03 17:11:54 +05:30
volume_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
volume_linux_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
volume_unsupported.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00