Files
kubernetes/pkg/controller
Kubernetes Submit Queue 1dae5f04d5 Merge pull request #58522 from jsafrane/fix-binding-error-messages
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
```
2018-01-23 15:29:41 -08:00
..
2018-01-17 16:23:03 +08:00
2017-12-23 13:12:11 -08:00
2018-01-05 15:05:01 -08:00
2017-12-23 13:12:11 -08:00
2018-01-05 15:05:01 -08:00
2017-12-23 13:12:11 -08:00
2017-12-23 13:12:11 -08:00
2017-12-23 13:12:11 -08:00
2017-12-23 13:12:11 -08:00
2018-01-17 09:34:59 +08:00
2017-12-23 13:12:11 -08:00
2018-01-17 09:34:59 +08:00
2017-12-23 13:12:11 -08:00
2017-12-23 13:12:11 -08:00
2017-12-23 13:12:11 -08:00
2017-11-09 12:14:08 +01:00
2017-12-23 13:12:11 -08:00
2016-10-13 16:10:24 -07:00
2017-11-14 17:18:17 +08:00
2016-07-16 13:48:21 -04:00