Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Sep 13, 2024
1 parent 30d2622 commit 3f7aece
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cmd/agent/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@ func registerConsoleReconcilersOrDie(
k8sClient ctrclient.Client,
consoleClient client.Client,
) {
mgr.AddReconcilerOrDie(service.Identifier, func() (controller.Reconciler, workqueue.RateLimitingInterface, error) {
mgr.AddReconcilerOrDie(service.Identifier, func() (controller.Reconciler, workqueue.TypedRateLimitingInterface[string], error) {
r, err := service.NewServiceReconciler(consoleClient, config, args.ControllerCacheTTL(), args.ManifestCacheTTL(), args.RestoreNamespace(), args.ConsoleUrl())
return r, r.SvcQueue, err
})

mgr.AddReconcilerOrDie(pipelinegates.Identifier, func() (controller.Reconciler, workqueue.RateLimitingInterface, error) {
mgr.AddReconcilerOrDie(pipelinegates.Identifier, func() (controller.Reconciler, workqueue.TypedRateLimitingInterface[string], error) {
r, err := pipelinegates.NewGateReconciler(consoleClient, k8sClient, config, args.ControllerCacheTTL(), args.PollInterval(), args.ClusterId())
return r, r.GateQueue, err
})

mgr.AddReconcilerOrDie(restore.Identifier, func() (controller.Reconciler, workqueue.RateLimitingInterface, error) {
mgr.AddReconcilerOrDie(restore.Identifier, func() (controller.Reconciler, workqueue.TypedRateLimitingInterface[string], error) {
r := restore.NewRestoreReconciler(consoleClient, k8sClient, args.ControllerCacheTTL(), args.RestoreNamespace())
return r, r.RestoreQueue, nil
})

mgr.AddReconcilerOrDie(namespaces.Identifier, func() (controller.Reconciler, workqueue.RateLimitingInterface, error) {
mgr.AddReconcilerOrDie(namespaces.Identifier, func() (controller.Reconciler, workqueue.TypedRateLimitingInterface[string], error) {
r := namespaces.NewNamespaceReconciler(consoleClient, k8sClient, args.ControllerCacheTTL())
return r, r.NamespaceQueue, nil
})

mgr.AddReconcilerOrDie(stacks.Identifier, func() (controller.Reconciler, workqueue.RateLimitingInterface, error) {
mgr.AddReconcilerOrDie(stacks.Identifier, func() (controller.Reconciler, workqueue.TypedRateLimitingInterface[string], error) {
namespace, err := utils.GetOperatorNamespace()
if err != nil {
setupLog.Errorw("unable to get operator namespace", "error", err)
Expand Down
1 change: 0 additions & 1 deletion cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
deploymentsv1alpha1 "github.com/pluralsh/deployment-operator/api/v1alpha1"
"github.com/pluralsh/deployment-operator/cmd/agent/args"
"github.com/pluralsh/deployment-operator/pkg/cache"
_ "github.com/pluralsh/deployment-operator/pkg/cache" // Init cache.
"github.com/pluralsh/deployment-operator/pkg/client"
consolectrl "github.com/pluralsh/deployment-operator/pkg/controller"
"github.com/pluralsh/deployment-operator/pkg/log"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/controller_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (cm *ControllerManager) GetReconciler(name string) Reconciler {
return nil
}

func (cm *ControllerManager) AddReconcilerOrDie(name string, reconcilerGetter func() (Reconciler, workqueue.RateLimitingInterface, error)) {
func (cm *ControllerManager) AddReconcilerOrDie(name string, reconcilerGetter func() (Reconciler, workqueue.TypedRateLimitingInterface[string], error)) {
reconciler, queue, err := reconcilerGetter()
if err != nil {
log.Logger.Errorw("unable to create reconciler", "name", name, "error", err)
Expand Down

0 comments on commit 3f7aece

Please sign in to comment.