mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Add event for pvc in case node expansion fails
This commit is contained in:
parent
2905275a08
commit
e8bd5c7785
@ -1740,6 +1740,7 @@ func (og *operationGenerator) nodeExpandVolume(volumeToMount VolumeToMount, rsOp
|
|||||||
simpleMsg, detailedMsg := volumeToMount.GenerateMsg("MountVolume.NodeExpandVolume failed", "requested read-only file system")
|
simpleMsg, detailedMsg := volumeToMount.GenerateMsg("MountVolume.NodeExpandVolume failed", "requested read-only file system")
|
||||||
klog.Warningf(detailedMsg)
|
klog.Warningf(detailedMsg)
|
||||||
og.recorder.Eventf(volumeToMount.Pod, v1.EventTypeWarning, kevents.FileSystemResizeFailed, simpleMsg)
|
og.recorder.Eventf(volumeToMount.Pod, v1.EventTypeWarning, kevents.FileSystemResizeFailed, simpleMsg)
|
||||||
|
og.recorder.Eventf(pvc, v1.EventTypeWarning, kevents.FileSystemResizeFailed, simpleMsg)
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
rsOpts.VolumeSpec = volumeToMount.VolumeSpec
|
rsOpts.VolumeSpec = volumeToMount.VolumeSpec
|
||||||
|
Loading…
Reference in New Issue
Block a user