func NewReconcileAddonsConfiguration(mgr manager.Manager, addonGetterFactory addonGetterFactory,
	chartStorage chartStorage, addonStorage addonStorage, brokerFacade brokerFacade, docsProvider docsProvider,
	brokerSyncer brokerSyncer, templateService templateService, tmpDir string, reprocessOnErrorDuration time.Duration, log logrus.FieldLogger) reconcile.Reconciler {
	return &ReconcileAddonsConfiguration{
		log:    log.WithField("controller", "addons"),
		Client: mgr.GetClient(),
		common: newControllerCommon(mgr.GetClient(), addonGetterFactory, addonStorage, chartStorage,
			docsProvider, brokerSyncer, brokerFacade, templateService, path.Join(tmpDir, "addon-loader-dst"), reprocessOnErrorDuration, log),
	}
}
NewReconcileAddonsConfiguration returns a new reconcile.Reconciler
package controller
import (
	"context"
	"fmt"
	"path"
	"time"
	"github.com/kyma-project/helm-broker/internal"
	"github.com/kyma-project/helm-broker/pkg/apis/addons/v1alpha1"
	"github.com/sirupsen/logrus"
	"sigs.k8s.io/controller-runtime/pkg/client"
	"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"
	"sigs.k8s.io/controller-runtime/pkg/source"
)
var _ reconcile.Reconciler = &ReconcileAddonsConfiguration{}
type ReconcileAddonsConfiguration struct {
	log logrus.FieldLogger
	client.Client
	common commonReconciler
}