@@ -168,7 +168,7 @@ func main() {
168
168
case strings .Contains (watchNamespace , "," ):
169
169
// multi namespace scoped
170
170
controllerOptions .Cache .DefaultNamespaces = getNamespaceConfig (watchNamespace )
171
- setupLog .Info ("manager set up with multiple namespaces" , "namespaces" , watchNamespace )
171
+ setupLog .Info ("operator running in namespace scoped mode for multiple namespaces" , "namespaces" , watchNamespace )
172
172
case watchNamespace != "" :
173
173
// namespace scoped
174
174
controllerOptions .Cache .DefaultNamespaces = getNamespaceConfig (watchNamespace )
@@ -216,15 +216,13 @@ func main() {
216
216
if err = (& controllers.GrafanaDashboardReconciler {
217
217
Client : mgr .GetClient (),
218
218
Scheme : mgr .GetScheme (),
219
- Log : ctrl .Log .WithName ("DashboardReconciler" ),
220
219
}).SetupWithManager (mgr , ctx ); err != nil {
221
220
setupLog .Error (err , "unable to create controller" , "controller" , "GrafanaDashboard" )
222
221
os .Exit (1 )
223
222
}
224
223
if err = (& controllers.GrafanaDatasourceReconciler {
225
224
Client : mgr .GetClient (),
226
225
Scheme : mgr .GetScheme (),
227
- Log : ctrl .Log .WithName ("DatasourceReconciler" ),
228
226
}).SetupWithManager (mgr , ctx ); err != nil {
229
227
setupLog .Error (err , "unable to create controller" , "controller" , "GrafanaDatasource" )
230
228
os .Exit (1 )
0 commit comments