-
Notifications
You must be signed in to change notification settings - Fork 11
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
Emit events during remediation process #96
Conversation
Skipping CI for Draft Pull Request. |
/test ? |
@clobrano: The following commands are available to trigger required jobs:
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test 4.14-openshift-e2e |
e27982f
to
d41b31b
Compare
/test 4.14-openshift-e2e |
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.
I think we are missing events in the if machine == nil {}
block, otherwise 👍🏼
Converting the PR to WIP to prevent tests execution |
283d2c0
to
a91a735
Compare
fixes: https://issues.redhat.com/browse/ECOPROJECT-1664 Signed-off-by: Carlo Lobrano <[email protected]>
a91a735
to
243498e
Compare
moved to draft to avoid wasting tests |
Signed-off-by: Carlo Lobrano <[email protected]>
/test 4.14-openshift-e2e |
/lgtm |
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.
one comment inside, otherwise lgtm
@@ -225,7 +245,8 @@ func (r *MachineDeletionRemediationReconciler) Reconcile(ctx context.Context, re | |||
return ctrl.Result{}, errors.Wrapf(err, "failed to save Machine's name and namespace") | |||
} | |||
|
|||
log.Info("request machine deletion", "machine", machine.GetName()) | |||
commonevents.NormalEvent(r.Recorder, mdr, machineDeletionRequestedEventReason, machineDeletionRequestedEventMessage) |
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.
this this event says "requested" (past tense), so it should emitted after successful machine deletion
…etion Signed-off-by: Carlo Lobrano <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: clobrano, slintes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
fixes: https://issues.redhat.com/browse/ECOPROJECT-1664
Signed-off-by: Carlo Lobrano [email protected]