-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Watching all VolumeAttachments in the cluster even when the CSI driver itself doesn't support attach/detach causes unnecessary overhead. It is now automatically enabled if and only if the driver reports the PUBLISH_UNPUBLISH_VOLUME controller capability. Checking the capability is better than checking the "skip attach" flag in the CSIDriver object because the capability is readily available and constant. It also has the advantage that the watch is disabled for drivers like csi-host-path-driver which do not support attach/detach but don't use "skip attach" (for whatever reason).
- Loading branch information
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters