mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 16:21:13 +00:00
adding some debug
This commit is contained in:
parent
0796d5c0d8
commit
762ca8e8a9
@ -374,13 +374,15 @@ func (og *operationGenerator) GenerateMountVolumeFunc(
|
|||||||
volumeToMount.Pod,
|
volumeToMount.Pod,
|
||||||
volume.VolumeOptions{})
|
volume.VolumeOptions{})
|
||||||
if newMounterErr != nil {
|
if newMounterErr != nil {
|
||||||
return nil, fmt.Errorf(
|
errMsg := fmt.Errorf(
|
||||||
"MountVolume.NewMounter failed for volume %q (spec.Name: %q) pod %q (UID: %q) with: %v",
|
"MountVolume.NewMounter failed for volume %q (spec.Name: %q) pod %q (UID: %q) with: %v",
|
||||||
volumeToMount.VolumeName,
|
volumeToMount.VolumeName,
|
||||||
volumeToMount.VolumeSpec.Name(),
|
volumeToMount.VolumeSpec.Name(),
|
||||||
volumeToMount.PodName,
|
volumeToMount.PodName,
|
||||||
volumeToMount.Pod.UID,
|
volumeToMount.Pod.UID,
|
||||||
newMounterErr)
|
newMounterErr)
|
||||||
|
og.recorder.Eventf(volumeToMount.Pod, v1.EventTypeWarning, kevents.FailedMountVolume, errMsg.Error())
|
||||||
|
return nil, errMsg
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get attacher, if possible
|
// Get attacher, if possible
|
||||||
|
Loading…
Reference in New Issue
Block a user