adding azure client for additonal methods
@@ -169,9 +169,12 @@ func main() {
}
if err = (&controllers.RedisCacheReconciler{
Client: mgr.GetClient(),
- Log: ctrl.Log.WithName("controllers").WithName("RedisCache"),
+ Telemetry: telemetry.InitializePrometheusDefault(
+ ctrl.Log.WithName("controllers").WithName("ResourceGroup"),
+ "ResourceGroup",
+ ),
Recorder: mgr.GetEventRecorderFor("RedisCache-controller"),
- AzureRedisCacheManager: redisCacheManager,
+ AzureClient: redisCacheManager,
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "RedisCache")
os.Exit(1)
