Merge pull request #84137 from cwdsuzhou/Octo/add_success_events
Add an event to pvc when node expand successfully
This commit is contained in:
@@ -1757,6 +1757,7 @@ func (og *operationGenerator) nodeExpandVolume(volumeToMount VolumeToMount, rsOp
|
|||||||
}
|
}
|
||||||
simpleMsg, detailedMsg := volumeToMount.GenerateMsg("MountVolume.NodeExpandVolume succeeded", "")
|
simpleMsg, detailedMsg := volumeToMount.GenerateMsg("MountVolume.NodeExpandVolume succeeded", "")
|
||||||
og.recorder.Eventf(volumeToMount.Pod, v1.EventTypeNormal, kevents.FileSystemResizeSuccess, simpleMsg)
|
og.recorder.Eventf(volumeToMount.Pod, v1.EventTypeNormal, kevents.FileSystemResizeSuccess, simpleMsg)
|
||||||
|
og.recorder.Eventf(pvc, v1.EventTypeNormal, kevents.FileSystemResizeSuccess, simpleMsg)
|
||||||
klog.Infof(detailedMsg)
|
klog.Infof(detailedMsg)
|
||||||
// File system resize succeeded, now update the PVC's Capacity to match the PV's
|
// File system resize succeeded, now update the PVC's Capacity to match the PV's
|
||||||
err = util.MarkFSResizeFinished(pvc, pvSpecCap, og.kubeClient)
|
err = util.MarkFSResizeFinished(pvc, pvSpecCap, og.kubeClient)
|
||||||
|
Reference in New Issue
Block a user