1
0
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:
Darren Shepherd
2018-12-17 15:39:06 -07:00
parent 6782e638ac
commit b9bd7461bd

View File

@@ -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 {