Skip to content

Commit

Permalink
codeflare operator: drop unused ctx parameter to setup methods (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrove-oss authored Apr 22, 2024
1 parent c4eeb84 commit 2d09664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2d09664

Please sign in to comment.