mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-08 00:01:40 +00:00
Automatic merge from submit-queue (batch tested with PRs 54242, 58522, 58704, 58708, 58712). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Clean up error messages for pre-bound PVCs. When a PVC explicitly requests specific PV and the PV does not match, we should tell the user what exactly does not match. From: `Volume's size is smaller than requested or volume's class does not match with claim` To: `Cannot bind to requested volume "<volume name>": %s`, where `%s` is one of: - `requested PV is too small` - `storageClasseNames do not match` - `incompatible volumeMode` - `error checking volumeMode: api defaulting for volumeMode failed` (this should not ever happen) /sig storage @kubernetes/sig-storage-pr-reviews **Release note**: ```release-note NONE ```