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

refactor: moving pod events method to PodManager #1131

Merged

Conversation

axel7083
Copy link
Contributor

What does this PR do?

This PR moves and cleanup the logic of capturing pod event, previously located in PodmanConnection class, inside the PodManager.

The following changes are included:

  • Using EventEmitter instead of declaring new types and storing the listeners in arrays
  • Adding tests

Screenshot / video of UI

What issues does this PR fix or reference?

Fixes #1129

How to test this PR?

  • Unit tests has been provided

@axel7083 axel7083 requested review from benoitf and a team as code owners May 29, 2024 13:50
@axel7083 axel7083 requested a review from feloy May 29, 2024 13:50
Signed-off-by: axel7083 <[email protected]>
@axel7083 axel7083 requested a review from lstocchi May 29, 2024 14:11
@axel7083 axel7083 merged commit af6cd5e into containers:main May 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pod events (start, stop, remove) are capture in PodmanConnection and should be move to PodManager
2 participants