mirror of
https://github.com/rancher/norman.git
synced 2025-09-19 09:50:52 +00:00
If disablecontrollers don't start global controllers
This commit is contained in:
6
build.go
6
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 {
|
||||
|
Reference in New Issue
Block a user