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

Support for plugable reconcilers #112

Conversation

p-strusiewiczsurmacki-mobica
Copy link
Contributor

@p-strusiewiczsurmacki-mobica p-strusiewiczsurmacki-mobica commented Apr 16, 2024

This PR introduces basic support for plugable reconcilers as it will be required by #99.

LegacyReconciler that uses netlink/FRR was separated from the Reconciler struct and is provided to this struct by IReconciler interface, via dependency injection. Additionally stub for NETCONF based reconciler was created and config flag for selection was added.

type Reconciler struct {
client client.Client
logger logr.Logger
iReconciler IReconciler
Copy link
Member

Choose a reason for hiding this comment

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

A little confusing that both are called reconciler imo, maybe something like 'adapter' would be better here, similar to the generic ipam reconciler. But I'll leave it up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@p-strusiewiczsurmacki-mobica p-strusiewiczsurmacki-mobica force-pushed the config-interface branch 2 times, most recently from d6058fd to b9e2434 Compare May 20, 2024 13:45
Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]>
@p-strusiewiczsurmacki-mobica
Copy link
Contributor Author

Closing this as it will be addressed in #124

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.

2 participants