diff --git a/build.go b/build.go index f015b6f1..73c1d911 100644 --- a/build.go +++ b/build.go @@ -101,7 +101,11 @@ func (c *Config) Build(ctx context.Context, opts *Options) (context.Context, *Se } } - return ctx, server, controller.SyncThenStart(ctx, c.Threadiness, starters...) + if !opts.DisableControllers { + err = controller.SyncThenStart(ctx, c.Threadiness, starters...) + } + + return ctx, server, err } func (c *Config) apiServer(ctx context.Context, r *Runtime) error {