mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +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)
|
volumePlugin, err := expc.volumePluginMgr.FindExpandablePluginBySpec(volumeSpec)
|
||||||
if err != nil || volumePlugin == nil {
|
if err != nil || volumePlugin == nil {
|
||||||
msg := fmt.Errorf("didn't find a plugin capable of expanding the volume; " +
|
msg := "waiting for an external controller to expand this PVC"
|
||||||
"waiting for an external controller to process this PVC")
|
eventType := v1.EventTypeNormal
|
||||||
klog.Infof("Ignoring the PVC %q (uid: %q) : %v.", key, pvc.UID, msg)
|
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
|
// 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.
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user