@@ -61,7 +61,9 @@ import (
6161 infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
6262 "sigs.k8s.io/cluster-api-provider-azure/azure"
6363 "sigs.k8s.io/cluster-api-provider-azure/controllers"
64+ cplanev1beta2exp "sigs.k8s.io/cluster-api-provider-azure/exp/api/controlplane/v1beta2"
6465 infrav1exp "sigs.k8s.io/cluster-api-provider-azure/exp/api/v1beta1"
66+ infrav1beta2exp "sigs.k8s.io/cluster-api-provider-azure/exp/api/v1beta2"
6567 infrav1controllersexp "sigs.k8s.io/cluster-api-provider-azure/exp/controllers"
6668 "sigs.k8s.io/cluster-api-provider-azure/feature"
6769 "sigs.k8s.io/cluster-api-provider-azure/pkg/coalescing"
@@ -79,6 +81,8 @@ func init() {
7981 _ = clientgoscheme .AddToScheme (scheme )
8082 _ = infrav1 .AddToScheme (scheme )
8183 _ = infrav1exp .AddToScheme (scheme )
84+ _ = cplanev1beta2exp .AddToScheme (scheme )
85+ _ = infrav1beta2exp .AddToScheme (scheme )
8286 _ = clusterv1 .AddToScheme (scheme )
8387 _ = expv1 .AddToScheme (scheme )
8488 _ = kubeadmv1 .AddToScheme (scheme )
@@ -611,23 +615,23 @@ func registerControllers(ctx context.Context, mgr manager.Manager) {
611615 Client : mgr .GetClient (),
612616 WatchFilterValue : watchFilterValue ,
613617 }).SetupWithManager (ctx , mgr , controller.Options {MaxConcurrentReconciles : azureClusterConcurrency }); err != nil {
614- setupLog .Error (err , "unable to create controller" , "controller" , "AroCluster " )
618+ setupLog .Error (err , "unable to create controller" , "controller" , "AROCluster " )
615619 os .Exit (1 )
616620 }
617621
618622 if err := (& infrav1controllersexp.AROControlPlaneReconciler {
619623 Client : mgr .GetClient (),
620624 WatchFilterValue : watchFilterValue ,
621625 }).SetupWithManager (ctx , mgr , controller.Options {MaxConcurrentReconciles : azureClusterConcurrency }); err != nil {
622- setupLog .Error (err , "unable to create controller" , "controller" , "AroControlPlane " )
626+ setupLog .Error (err , "unable to create controller" , "controller" , "AROControlPlane " )
623627 os .Exit (1 )
624628 }
625629
626630 if err := (& infrav1controllersexp.AroMachinePoolReconciler {
627631 Client : mgr .GetClient (),
628632 WatchFilterValue : watchFilterValue ,
629633 }).SetupWithManager (ctx , mgr , controller.Options {MaxConcurrentReconciles : azureMachinePoolConcurrency }); err != nil {
630- setupLog .Error (err , "unable to create controller" , "controller" , "AroMachinePool " )
634+ setupLog .Error (err , "unable to create controller" , "controller" , "AROMachinePool " )
631635 os .Exit (1 )
632636 }
633637 }
0 commit comments