Skip to content

Commit

Permalink
Disable OdigosConfig reconciler in instrumentor (#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
edeNFed authored Sep 18, 2024
1 parent 83f7548 commit 44c27f0
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions instrumentor/controllers/startlangdetection/manager.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package startlangdetection

import (
"github.com/odigos-io/odigos/instrumentor/controllers/utils"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -60,18 +59,18 @@ func SetupWithManager(mgr ctrl.Manager) error {
return err
}

err = builder.
ControllerManagedBy(mgr).
Named("startlangdetection-configmaps").
For(&corev1.ConfigMap{}).
WithEventFilter(&utils.OnlyUpdatesPredicate{}).
Complete(&OdigosConfigReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
})
if err != nil {
return err
}
//err = builder.
// ControllerManagedBy(mgr).
// Named("startlangdetection-configmaps").
// For(&corev1.ConfigMap{}).
// WithEventFilter(&utils.OnlyUpdatesPredicate{}).
// Complete(&OdigosConfigReconciler{
// Client: mgr.GetClient(),
// Scheme: mgr.GetScheme(),
// })
//if err != nil {
// return err
//}

return nil
}

0 comments on commit 44c27f0

Please sign in to comment.