mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
reword the warning that gets printed on external expansion
This commit is contained in:
parent
1e57dae5ec
commit
c9fc35c496
@ -280,9 +280,13 @@ func (expc *expandController) syncHandler(ctx context.Context, key string) error
|
||||
|
||||
volumePlugin, err := expc.volumePluginMgr.FindExpandablePluginBySpec(volumeSpec)
|
||||
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")
|
||||
klog.Infof("Ignoring the PVC %q (uid: %q) : %v.", key, pvc.UID, msg)
|
||||
msg := "waiting for an external controller to expand this PVC"
|
||||
eventType := v1.EventTypeNormal
|
||||
if err != nil {
|
||||
eventType = v1.EventTypeWarning
|
||||
}
|
||||
expc.recorder.Event(pvc, eventType, events.ExternalExpanding, msg)
|
||||
klog.Infof("waiting for an external controller to expand the PVC %q (uid: %q)", key, pvc.UID)
|
||||
// If we are expecting that an external plugin will handle resizing this volume then
|
||||
// is no point in requeuing this PVC.
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user