diff --git a/operators/nephio-controller-manager/main.go b/operators/nephio-controller-manager/main.go index 16bbe066..559f6fff 100644 --- a/operators/nephio-controller-manager/main.go +++ b/operators/nephio-controller-manager/main.go @@ -203,14 +203,17 @@ func parseReconcilers(reconcilers string) []string { } func reconcilerIsEnabled(reconcilers []string, reconciler string) bool { + if slices.Contains(reconcilers, "*") { return true } if slices.Contains(reconcilers, reconciler) { return true } - if _, found := os.LookupEnv(fmt.Sprintf("ENABLE_%s", strings.ToUpper(reconciler))); found { - return true + if val, found := os.LookupEnv(fmt.Sprintf("ENABLE_%s", strings.ToUpper(reconciler))); found { + if val == "true" { + return true + } } return false }