mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Add SuccessfulMountVolume message to the events of pod
This commit is contained in:
parent
c13d8917c2
commit
f57224c0d2
@ -465,11 +465,14 @@ func (og *operationGenerator) GenerateMountVolumeFunc(
|
|||||||
return detailedErr
|
return detailedErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
simpleMsg, detailedMsg := volumeToMount.GenerateMsg("MountVolume.SetUp succeeded", "")
|
||||||
verbosity := glog.Level(1)
|
verbosity := glog.Level(1)
|
||||||
if isRemount {
|
if isRemount {
|
||||||
verbosity = glog.Level(7)
|
verbosity = glog.Level(7)
|
||||||
|
} else {
|
||||||
|
og.recorder.Eventf(volumeToMount.Pod, v1.EventTypeNormal, kevents.SuccessfulMountVolume, simpleMsg)
|
||||||
}
|
}
|
||||||
glog.V(verbosity).Infof(volumeToMount.GenerateMsgDetailed("MountVolume.SetUp succeeded", ""))
|
glog.V(verbosity).Infof(detailedMsg)
|
||||||
|
|
||||||
// Update actual state of world
|
// Update actual state of world
|
||||||
markVolMountedErr := actualStateOfWorld.MarkVolumeAsMounted(
|
markVolMountedErr := actualStateOfWorld.MarkVolumeAsMounted(
|
||||||
|
Loading…
Reference in New Issue
Block a user