-
Notifications
You must be signed in to change notification settings - Fork 2
feat(controllers): expose controller constructors to use scaleway provider as SDK #33
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
Conversation
…provider as SDK Signed-off-by: Steffen Karlsson <steffen.karlsson@gmail.com>
|
See example of integration here: kommodity-io/kommodity#69 |
|
Hello, thank you for integrating our provider in your project. It looks like CI is failing, could you please add these changes to your PR?
I will run e2e in #34 as CI secrets are not accessible from forks. |
Signed-off-by: Steffen Karlsson <steffen.karlsson@gmail.com>
Done :) Thanks for the quick reply |
|
On second thoughts, moving controllers to Would it be OK for you if we create public aliases to export the reconcilers instead? Something like this in package controller
import "github.com/scaleway/cluster-api-provider-scaleway/internal/controller"
// Following variables provide access to reconcilers implemented in internal/controller.
var (
NewScalewayClusterReconciler = controller.NewScalewayClusterReconciler
NewScalewayMachineReconciler = controller.NewScalewayMachineReconciler
NewScalewayManagedClusterReconciler = controller.NewScalewayManagedClusterReconciler
NewScalewayManagedControlPlaneReconciler = controller.NewScalewayManagedControlPlaneReconciler
NewScalewayManagedMachinePoolReconciler = controller.NewScalewayManagedMachinePoolReconciler
)The cluster-api project does something similar for their |
…ubebuilder Signed-off-by: Steffen Karlsson <steffen.karlsson@gmail.com>
Just tested it, works as expected, I've updated the PR. |
Co-authored-by: Tomy Guichard <tomy2e@live.fr>
Tomy2e
left a comment
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.
Thank you. Will merge after CI passes
We at Corti.ai are building kommodity-io as part of our Sovereign Cloud initiative for AI in Health Care: https://www.corti.ai/sovereign-cloud and want to integrate Scaleway as part of our supported provider list: https://github.com/kommodity-io/kommodity/blob/main/pkg/provider/providers.yaml.
Therefore, we need the reconcilers to be available to use outside of the package, like for CAPZ, Talos or others from the official CAPI Provider list.