mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Ignore error when we can't find plugin capable of expanding the volume intre
This commit is contained in:
parent
0e6f4d3a35
commit
1e57dae5ec
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user