func newReconciler(
	mgr manager.Manager,
) reconcile.Reconciler {
	return &ReconcileKubeDirectorConfig{scheme: mgr.GetScheme()}
}
newReconciler returns a new reconcile.Reconciler.
package kubedirectorconfig
import (
	"context"
	"fmt"
	kdv1 "github.com/bluek8s/kubedirector/pkg/apis/kubedirector/v1beta1"
	"github.com/bluek8s/kubedirector/pkg/shared"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/runtime"
	"sigs.k8s.io/controller-runtime/pkg/controller"
	"sigs.k8s.io/controller-runtime/pkg/handler"
	"sigs.k8s.io/controller-runtime/pkg/manager"
	"sigs.k8s.io/controller-runtime/pkg/reconcile"
	logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
	"sigs.k8s.io/controller-runtime/pkg/source"
)
var log = logf.Log.WithName("controller_kubedirectorconfig")
func Add(
	mgr manager.Manager,
) error {
	return add(mgr, newReconciler(mgr))
}