Plugins: Remove pluginsCDNSyncLoader feature toggle (#108389)
* remove pluginsCDNSyncLoader feature toggle * fix lint issues * fix other linter issue
This commit is contained in:
@@ -30,10 +30,9 @@ type PluginManagementCfg struct {
|
||||
|
||||
// Features contains the feature toggles used for the plugin management system.
|
||||
type Features struct {
|
||||
SkipHostEnvVarsEnabled bool
|
||||
SriChecksEnabled bool
|
||||
PluginsCDNSyncLoaderEnabled bool
|
||||
LocalizationForPlugins bool
|
||||
SkipHostEnvVarsEnabled bool
|
||||
SriChecksEnabled bool
|
||||
LocalizationForPlugins bool
|
||||
// Needed only until Tempo Alerting / metrics TraceQL is stable
|
||||
// https://github.com/grafana/grafana/issues/106888
|
||||
TempoAlertingEnabled bool
|
||||
|
||||
@@ -93,10 +93,8 @@ func (l *Loader) Load(ctx context.Context, src plugins.PluginSource) ([]*plugins
|
||||
}
|
||||
validateResults := make(chan validateResult, len(bootstrappedPlugins))
|
||||
|
||||
// If the PluginsCDNSyncLoaderEnabled feature is enabled, validate plugins in parallel.
|
||||
// Otherwise, validate plugins sequentially.
|
||||
var limitSize int
|
||||
if l.cfg.Features.PluginsCDNSyncLoaderEnabled && src.PluginClass(ctx) == plugins.ClassCDN {
|
||||
if src.PluginClass(ctx) == plugins.ClassCDN {
|
||||
limitSize = min(len(bootstrappedPlugins), concurrencyLimit)
|
||||
} else {
|
||||
limitSize = 1
|
||||
|
||||
Reference in New Issue
Block a user