mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Ignore error when we can't find plugin capable of expanding the volume intre
This commit is contained in:
		@@ -282,11 +282,6 @@ func (expc *expandController) syncHandler(ctx context.Context, key string) error
 | 
				
			|||||||
	if err != nil || volumePlugin == nil {
 | 
						if err != nil || volumePlugin == nil {
 | 
				
			||||||
		msg := fmt.Errorf("didn't find a plugin capable of expanding the volume; " +
 | 
							msg := fmt.Errorf("didn't find a plugin capable of expanding the volume; " +
 | 
				
			||||||
			"waiting for an external controller to process this PVC")
 | 
								"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)
 | 
							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
 | 
							// If we are expecting that an external plugin will handle resizing this volume then
 | 
				
			||||||
		// is no point in requeuing this PVC.
 | 
							// is no point in requeuing this PVC.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user