• Jan Safranek's avatar
    Clean up error messages for pre-bound PVCs. · 24400c24
    Jan Safranek authored
    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)
    24400c24
Name
Last commit
Last update
..
options Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
binder_test.go Loading commit data...
delete_test.go Loading commit data...
framework_test.go Loading commit data...
index.go Loading commit data...
index_test.go Loading commit data...
provision_test.go Loading commit data...
pv_controller.go Loading commit data...
pv_controller_base.go Loading commit data...
pv_controller_test.go Loading commit data...
recycle_test.go Loading commit data...
scheduler_assume_cache.go Loading commit data...
scheduler_assume_cache_test.go Loading commit data...
scheduler_binder.go Loading commit data...
scheduler_binder_cache.go Loading commit data...
scheduler_binder_cache_test.go Loading commit data...
scheduler_binder_fake.go Loading commit data...
scheduler_binder_test.go Loading commit data...
volume_host.go Loading commit data...