-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(vmsnapshot): add new events #647
Conversation
bee9d48
to
2618d97
Compare
Signed-off-by: Roman Sysoev <[email protected]>
2618d97
to
a664fe1
Compare
@@ -61,7 +64,7 @@ func (h LifeCycleHandler) Handle(ctx context.Context, vmSnapshot *virtv2.Virtual | |||
|
|||
vm, err := h.snapshotter.GetVirtualMachine(ctx, vmSnapshot.Spec.VirtualMachineName, vmSnapshot.Namespace) | |||
if err != nil { | |||
setPhaseConditionToFailed(cb, &vmSnapshot.Status.Phase, err) | |||
setPhaseConditionToFailed(h, cb, vmSnapshot, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make the function a method? So we don't have to pass the handler as an argument.
vmSnapshot, | ||
corev1.EventTypeWarning, | ||
virtv2.ReasonVMSnapshottingFailed, | ||
err.Error()+".", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
service.CapitalizeFirstLetter(err.Error()) + "."
The same as for the message below.
Signed-off-by: Roman Sysoev <[email protected]>
d1278fe
to
2ab1419
Compare
Signed-off-by: Roman Sysoev <[email protected]>
2ab1419
to
a6299d4
Compare
Signed-off-by: Roman Sysoev <[email protected]>
Description
Add events when
VirtualMachineSnapshot
:Why do we need it, and what problem does it solve?
It improves user experience in the snapshotting process of
VirtualMachine
.What is the expected result?
Checklist