Skip to content

Commit

Permalink
register vm controller with test operator
Browse files Browse the repository at this point in the history
  • Loading branch information
frodopwns committed Apr 21, 2020
1 parent 9e6909c commit beef646
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
resourcemanagerstorages "github.com/Azure/azure-service-operator/pkg/resourcemanager/storages"
resourcemanagerblobcontainer "github.com/Azure/azure-service-operator/pkg/resourcemanager/storages/blobcontainer"
resourcemanagerstorageaccount "github.com/Azure/azure-service-operator/pkg/resourcemanager/storages/storageaccount"
"github.com/Azure/azure-service-operator/pkg/resourcemanager/vm"
resourcemanagervnet "github.com/Azure/azure-service-operator/pkg/resourcemanager/vnet"
telemetry "github.com/Azure/azure-service-operator/pkg/telemetry"

Expand Down Expand Up @@ -509,6 +510,25 @@ func setup() error {
return err
}

err = (&AzureVirtualMachineReconciler{
Reconciler: &AsyncReconciler{
Client: k8sManager.GetClient(),
AzureClient: vm.NewAzureVirtualMachineClient(
secretClient,
k8sManager.GetScheme(),
),
Telemetry: telemetry.InitializeTelemetryDefault(
"VirtualMachine",
ctrl.Log.WithName("controllers").WithName("VirtualMachine"),
),
Recorder: k8sManager.GetEventRecorderFor("VirtualMachine-controller"),
Scheme: scheme.Scheme,
},
}).SetupWithManager(k8sManager)
if err != nil {
return err
}

err = (&AzureSqlActionReconciler{
Reconciler: &AsyncReconciler{
Client: k8sManager.GetClient(),
Expand Down

0 comments on commit beef646

Please sign in to comment.