• mkimuram's avatar
    Add binding error message for volumeMode:Block unsupported case · 0ee71f0c
    mkimuram authored
    This commit adds a binding error message for volumeMode:Block
    unsupported case.
    With this message, users can understand why PV is not bound to
    PVC on both dynamic provisioning and manually creating volume.
    
    This patch works as follows:
    
    - In syncVolume, before adding the claim to claimQueue, check if
      there is a volumeMode mismatch, and if there is, record the
      event for both pv and pvc and skip adding to the queue.
    
    fixes: #59942
    0ee71f0c
binder_test.go 54.1 KB