Skip to content
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

Initialize Event Recorder for executer #120

Merged
merged 4 commits into from
Jan 7, 2024

Conversation

razo7
Copy link
Member

@razo7 razo7 commented Jan 7, 2024

  • Initialization was missing, and e.recorder was nil.
  • Fix unit-tests

Fix ECOPROJECT-1816

Initialization was missing. recorder was nil
Copy link
Contributor

openshift-ci bot commented Jan 7, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

openshift-ci bot commented Jan 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: razo7

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jan 7, 2024
@razo7
Copy link
Member Author

razo7 commented Jan 7, 2024

/test 4.14-openshift-e2e
/test 4.15-openshift-e2e

@mshitrit
Copy link
Member

mshitrit commented Jan 7, 2024

I think a UT capturing an event would be nice

Beforehand the event was emitted after every successful status update while running the agent
Setup fake recoder for executer and test FenceAgentSucceeded instead of ResourceDeletion event. Better event checking
@razo7
Copy link
Member Author

razo7 commented Jan 7, 2024

/test 4.14-openshift-e2e
/test 4.15-openshift-e2e

Code testing with one events recorder instead of two as in production code to simplify testing logic
@razo7
Copy link
Member Author

razo7 commented Jan 7, 2024

/test 4.14-openshift-e2e
/test 4.15-openshift-e2e

@mshitrit
Copy link
Member

mshitrit commented Jan 7, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 7, 2024
@razo7 razo7 marked this pull request as ready for review January 7, 2024 13:30
@razo7
Copy link
Member Author

razo7 commented Jan 7, 2024

/test 4.13-openshift-e2e

@openshift-merge-bot openshift-merge-bot bot merged commit a34fe8c into medik8s:main Jan 7, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants