kubernetes/pkg/volume/util
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
..
fs build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
fsquota build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
hostutil build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
nestedpendingoperations
operationexecutor Fix VolumeAttachment cleanup when AttachRequired changes 2025-12-19 15:51:45 +08:00
recyclerclient Merge pull request #125147 from alexandrevilain/fix/recycler-client 2024-10-04 15:02:27 +01:00
subpath build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
types Add code for not expanding volume if it has NodeExpansionNotRequired annotation 2025-05-28 13:07:34 -04:00
volumepathhandler build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
atomic_writer.go Merge pull request #124740 from bells17/use-sets-set-string 2024-05-31 05:32:15 -07:00
atomic_writer_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
atomic_writer_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
atomic_writer_unsupported.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
device_util.go
device_util_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
device_util_linux_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
device_util_unsupported.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
finalizer.go controller-manager adds a new controller named volumeattributesclass-protection-controller which adds/removes finalizer to VAC for protection 2024-08-30 15:00:46 +08:00
io_util.go storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
metrics.go Change plugin interfaces to use progress monitoring 2025-02-24 15:55:37 -05:00
metrics_test.go
nested_volumes.go pkg/volume: improve code style and readability 2025-09-27 20:18:08 +05:30
nested_volumes_test.go [pkg/volume] Changed to use sets.Set[string] instead of sets.String 2024-05-11 18:02:45 +09:00
resize_util.go Remove GetExec method from VolumeHost 2025-06-13 10:58:37 +08:00
resize_util_test.go Bump RecoverVolumeExpansionFailure to GA 2025-07-10 12:19:31 -04:00
selinux.go Describe what the input list of SELinux options is 2024-11-06 11:16:06 +01:00
selinux_test.go Promote SELinuxChangePolicy and SELinuxMount to beta 2025-03-04 11:03:54 +01:00
storageclass.go
storageclass_test.go Signed-off-by: liyuerich <yue.li@daocloud.io> 2023-08-18 22:18:11 +08:00
util.go Replace usage of deprecated ErrWaitTimeout with recommended method across all Pkgs 2025-08-01 14:18:06 +05:30
util_test.go Collect SELinux options only when needed 2024-11-01 12:46:39 +01:00