kubernetes/pkg/volume/flexvolume
Eddie 727a6e6db5
Reject pod when attachment limit is exceeded (#132933)
* Reject pod when attachment limit is exceeded

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Record admission rejection

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Fix pull-kubernetes-linter-hints

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Fix AD Controller unit test failure

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Consolidate error handling logic in WaitForAttachAndMount

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Improve error context

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Update admissionRejectionReasons to include VolumeAttachmentLimitExceededReason

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Update status message

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Add TestWaitForAttachAndMountVolumeAttachLimitExceededError unit test

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Add e2e test

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Fix pull-kubernetes-linter-hints

Signed-off-by: Eddie Torres <torredil@amazon.com>

---------

Signed-off-by: Eddie Torres <torredil@amazon.com>
2025-07-24 17:58:54 -07:00
..
attacher-defaults.go Remove GetExec method from VolumeHost 2025-06-13 10:58:37 +08:00
attacher.go Remove pluginName param from GetMounter and GetExec 2025-06-12 17:29:17 +08: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 Remove pluginName param from GetMounter and GetExec 2025-06-12 17:29:17 +08:00
detacher.go Remove pluginName param from GetMounter and GetExec 2025-06-12 17:29:17 +08:00
detacher_test.go Introduce test harness into unit tests 2018-10-08 18:44:05 -04:00
driver-call.go Fix Go vet errors for master golang 2024-09-20 12:36:38 +05:30
driver-call_test.go refactor(flexvolume): simplify capabilities handling 2017-08-24 22:18:58 +11:00
expander-defaults.go Remove pluginName param from GetMounter and GetExec 2025-06-12 17:29:17 +08: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 Handle returned error as placeholder variables for now 2025-02-24 16:26:48 -05: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 Reject pod when attachment limit is exceeded (#132933) 2025-07-24 17:58:54 -07:00
plugin_test.go bump k8s.io/utils version 2019-12-21 14:54:44 +08:00
probe.go Revert "Merge pull request #127669 from olyazavr/fix-probe-race" 2024-10-30 11:16:47 -04:00
probe_test.go Revert "Merge pull request #127669 from olyazavr/fix-probe-race" 2024-10-30 11:16:47 -04: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