• Kubernetes Submit Queue's avatar
    Merge pull request #58522 from jsafrane/fix-binding-error-messages · 1dae5f04
    Kubernetes Submit Queue authored
    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
    ```
    1dae5f04
Name
Last commit
Last update
..
bootstrap Loading commit data...
certificates Loading commit data...
cloud Loading commit data...
clusterroleaggregation Loading commit data...
cronjob Loading commit data...
daemon Loading commit data...
deployment Loading commit data...
disruption Loading commit data...
endpoint Loading commit data...
garbagecollector Loading commit data...
history Loading commit data...
job Loading commit data...
namespace Loading commit data...
nodeipam Loading commit data...
nodelifecycle Loading commit data...
podautoscaler Loading commit data...
podgc Loading commit data...
replicaset Loading commit data...
replication Loading commit data...
resourcequota Loading commit data...
route Loading commit data...
service Loading commit data...
serviceaccount Loading commit data...
statefulset Loading commit data...
testutil Loading commit data...
ttl Loading commit data...
util/node Loading commit data...
volume Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
client_builder.go Loading commit data...
controller_ref_manager.go Loading commit data...
controller_ref_manager_test.go Loading commit data...
controller_utils.go Loading commit data...
controller_utils_test.go Loading commit data...
doc.go Loading commit data...
lookup_cache.go Loading commit data...