fix regression in UX experience for double attach volume

send event when volume is not allowed to multi-attach
This commit is contained in:
NickrenREN
2017-05-19 10:17:59 +08:00
parent 95a6f108bd
commit add091b1fb
7 changed files with 43 additions and 17 deletions

View File

@@ -211,6 +211,10 @@ func generateVolumeMsg(prefixMsg, suffixMsg, volumeName, details string) (simple
// VolumeToAttach represents a volume that should be attached to a node.
type VolumeToAttach struct {
// MultiAttachErrorReported indicates whether the multi-attach error has been reported for the given volume.
// It is used to to prevent reporting the error from being reported more than once for a given volume.
MultiAttachErrorReported bool
// VolumeName is the unique identifier for the volume that should be
// attached.
VolumeName v1.UniqueVolumeName