Ignore error when we can't find plugin capable of expanding the volume intre

This commit is contained in:
Hemant Kumar 2023-01-26 14:39:05 -05:00
parent 0e6f4d3a35
commit 1e57dae5ec

View File

@ -282,11 +282,6 @@ func (expc *expandController) syncHandler(ctx context.Context, key string) error
if err != nil || volumePlugin == nil {
msg := fmt.Errorf("didn't find a plugin capable of expanding the volume; " +
"waiting for an external controller to process this PVC")
eventType := v1.EventTypeNormal
if err != nil {
eventType = v1.EventTypeWarning
}
expc.recorder.Event(pvc, eventType, events.ExternalExpanding, fmt.Sprintf("Ignoring the PVC: %v.", msg))
klog.Infof("Ignoring the PVC %q (uid: %q) : %v.", key, pvc.UID, msg)
// If we are expecting that an external plugin will handle resizing this volume then
// is no point in requeuing this PVC.