Skip to content

Commit

Permalink
refactor: update after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakis committed Sep 15, 2023
1 parent 2b5987c commit 6a0e175
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/kar-controllers/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
AgentConfigs: strings.Split(opt.AgentConfigs, ","),
}

jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig)
if jobctrl == nil {
return fmt.Errorf("failed to create a job controller")
}

g, gCtx := errgroup.WithContext(ctx)

Expand All @@ -86,8 +82,7 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
return err
}

// Create the job controller
jobctrl := queuejob.NewJobController(config, opt)
jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig)
if jobctrl == nil {
return fmt.Errorf("failed to create a job controller")
}
Expand Down

0 comments on commit 6a0e175

Please sign in to comment.