Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support ReadWriteOncePod (#857)
According to [KEP-2485](https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/2485-read-write-once-pod-pv-access-mode/README.md#csi-specification-changes-volume-capabilities), if the csi-driver exposes the `SINGLE_NODE_MULTI_WRITER` capability, then `ReadWriteOncePod` will map to the `SINGLE_NODE_SINGLE_WRITER` volume capability, otherwise it will map to `SINGLE_NODE_WRITER`. Our controller already responded with the `SINGLE_NODE_MULTI_WRITER`, but we blocked `SINGLE_NODE_SINGLE_WRITER` in a validation step in the `ControllerPublishVolume` method. Additional reference: - https://kubernetes.io/blog/2021/09/13/read-write-once-pod-access-mode-alpha/#accept-new-csi-access-modes - #327
- Loading branch information