-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support for plugable reconcilers #112
Conversation
pkg/reconciler/reconciler.go
Outdated
type Reconciler struct { | ||
client client.Client | ||
logger logr.Logger | ||
iReconciler IReconciler |
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.
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.
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.
Done
d6058fd
to
b9e2434
Compare
b9e2434
to
5848ec8
Compare
Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]>
5848ec8
to
a18e452
Compare
Closing this as it will be addressed in #124 |
This PR introduces basic support for plugable reconcilers as it will be required by #99.
LegacyReconciler
that uses netlink/FRR was separated from theReconciler
struct and is provided to this struct byIReconciler
interface, via dependency injection. Additionally stub for NETCONF based reconciler was created and config flag for selection was added.