diff --git a/cmd/main.go b/cmd/main.go index 5e8144c5..20817227 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -146,9 +146,9 @@ func main() { <-certsReady setupLog.Info("Certs ready") if ptr.Deref(cfg.WebhooksEnabled, false) { - exitOnError(controller.SetupWebhooks(ctx, mgr, cfg.AppWrapper), "unable to configure webhook") + exitOnError(controller.SetupWebhooks(mgr, cfg.AppWrapper), "unable to configure webhook") } - exitOnError(controller.SetupControllers(ctx, mgr, cfg.AppWrapper), "unable to start controllers") + exitOnError(controller.SetupControllers(mgr, cfg.AppWrapper), "unable to start controllers") }() exitOnError(controller.SetupIndexers(ctx, mgr, cfg.AppWrapper), "unable to setup indexers") diff --git a/pkg/controller/setup.go b/pkg/controller/setup.go index 7649f2f2..0579467c 100644 --- a/pkg/controller/setup.go +++ b/pkg/controller/setup.go @@ -37,7 +37,7 @@ import ( ) // SetupControllers creates and configures all components of the AppWrapper controller -func SetupControllers(ctx context.Context, mgr ctrl.Manager, awConfig *config.AppWrapperConfig) error { +func SetupControllers(mgr ctrl.Manager, awConfig *config.AppWrapperConfig) error { if awConfig.EnableKueueIntegrations { if err := workload.WorkloadReconciler( mgr.GetClient(), @@ -67,7 +67,7 @@ func SetupControllers(ctx context.Context, mgr ctrl.Manager, awConfig *config.Ap } // SetupWebhooks creates and configures the AppWrapper controller's Webhooks -func SetupWebhooks(ctx context.Context, mgr ctrl.Manager, awConfig *config.AppWrapperConfig) error { +func SetupWebhooks(mgr ctrl.Manager, awConfig *config.AppWrapperConfig) error { if err := (&webhook.AppWrapperWebhook{ Config: awConfig, }).SetupWebhookWithManager(mgr); err != nil {