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

Move default behavior into library #323

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Move default behavior into library #323

merged 3 commits into from
Jul 16, 2024

Conversation

sgraband
Copy link
Collaborator

Make code reuseable and reduce complexity of minimal example (defaultoperator).
Make leader election optional by making it not the default implementation, but a optional class.

Note: This is just a proposal, please feel free to comment if you would like to structure this differently or have any other objections.

Make code reuseable and reduce complexity of minimal example (defaultoperator).
Make leader election optional by making it not the default implementation, but a optional class.
Copy link
Collaborator

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sgraband , thanks for the refactoring! It already looks pretty good to me. I have two remarks inline. Please have a look :)

Also remove the abstract so it can directly be used.
Use it directly in the DefaultTheiaCloudOperatorModule.
Remove the DefaultTheiaCloudOperator as it is no longer needed.
Extract LeaderElection in separate method for easier customization.
Also make the other methods in the leader election protected.
@sgraband
Copy link
Collaborator Author

@lucas-koehler Thanks for the feedback. I incorporated both of your suggestions. Let me know what you think.

Copy link
Collaborator

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates! LGTM now ✨

@sgraband
Copy link
Collaborator Author

@jfaltermeier Do you want to take a look as well?

Copy link
Collaborator

@jfaltermeier jfaltermeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sgraband sgraband merged commit 1be7e1b into main Jul 16, 2024
5 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.

None yet

3 participants